Skip to content
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

CMake minimum version 3.10 #13760

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

scivision
Copy link
Member

This mitigates maintenance burden as CMake minimum version isn't
relevant for these tests. CMake >= 3.31 warns if CMake minimum version
is less than 3.10.

ref: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9875

This mitigates maintenance burden as CMake minimum version isn't
relevant for these tests. CMake >= 3.31 warns if CMake minimum version
is less than 3.10.

ref: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9875
Copy link
Member

@eli-schwartz eli-schwartz left a comment

Choose a reason for hiding this comment

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

Overall this change seems quite reasonable. And 3.5 is certainly not necessary for us anymore since if I recall correctly meson no longer supports versions of cmake below 3.14 for use in subproject() -- which I think is what all this code is related to anyway.

@@ -212,7 +212,7 @@ def update_cmake_compiler_state(self) -> None:
languages = list(self.compilers.keys())
lang_ids = [language_map.get(x, x.upper()) for x in languages]
cmake_content = dedent(f'''
cmake_minimum_required(VERSION 3.7)
cmake_minimum_required(VERSION 3.10)
Copy link
Member

Choose a reason for hiding this comment

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

Are we able to get away with the same "whatever the current version is" trick here too?

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.

2 participants