-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add support for cmake 4.0+ during testing #25974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
sbc100
left a comment
There was a problem hiding this 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.
45d6b88 to
1d5d008
Compare
|
Yes, I force-pushed a change to |
|
Sorry for the commit spam, but this should only overwrite the version for testing now! |
sbc100
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| configure = [EMCMAKE '-DCMAKE_POLICY_VERSION_MINIMUM=3.5'] + configure | |
| configure = [EMCMAKE, '-DCMAKE_POLICY_VERSION_MINIMUM=3.5'] + configure |
Fixes #25964
Follow-up of #25966
There were some more vendored libs that weren't supported by CMake 4.0.