Skip to content

Conversation

@JAicewizard
Copy link

Fixes #25964

Follow-up of #25966

There were some more vendored libs that weren't supported by CMake 4.0.

Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some command line argument we could instead pass to cmake to tell it not to worry about this?

(I don't love changing these files under third_party as they are supposed to be mostly unmodified upstream files).

Lgtm if its the only way.

@JAicewizard
Copy link
Author

Yes, I force-pushed a change to emcmake.py. I just realized this is probably not the best place, as it would also affect ones outside of testing though

@JAicewizard
Copy link
Author

Sorry for the commit spam, but this should only overwrite the version for testing now!

Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Maybe add a comment in both these location. Something like "Some tests have very old cmake_minimum_version settings which is not supported by cmake 4.2+. Forcing a slighly more recent cmake_minimum_version works around this issue."

if configure:
if configure[0] == 'cmake':
configure = [EMCMAKE] + configure
configure = [EMCMAKE '-DCMAKE_POLICY_VERSION_MINIMUM=3.5'] + configure
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
configure = [EMCMAKE '-DCMAKE_POLICY_VERSION_MINIMUM=3.5'] + configure
configure = [EMCMAKE, '-DCMAKE_POLICY_VERSION_MINIMUM=3.5'] + configure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update minimum cmake version of testing cmake files

3 participants