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

newer CMake complains about cmake_minimum_required(VERSION 2.6.4) #158

Open
slayoo opened this issue Jul 15, 2021 · 3 comments
Open

newer CMake complains about cmake_minimum_required(VERSION 2.6.4) #158

slayoo opened this issue Jul 15, 2021 · 3 comments
Assignees

Comments

@slayoo
Copy link
Collaborator

slayoo commented Jul 15, 2021

Cmake 3.20.5 outputs the following warning for PartMC CMakeLists.txt file:

  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

There is a comment in the CMakeLists.txt file stating that:

# Require 2.6.4 due to -I/usr/include behavior:
# http://www.cmake.org/Bug/view.php?id=8598
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35707
# http://www.cmake.org/Bug/view.php?id=8408

The referenced CMake bug reports are now closed, the gcc one seems to be a WONTFIX.

Any thoughts?

@mwest1066
Copy link
Contributor

I think we should just delete the cmake_minimum_required() line (and the comment lines to the bug trackers). This is all ancient history at this point.

@slayoo
Copy link
Collaborator Author

slayoo commented Oct 9, 2021

cmake_minimum_required entry is mandatory https://cmake.org/cmake/help/latest/policy/CMP0000.html#policy:CMP0000

@mwest1066
Copy link
Contributor

cmake_minimum_required entry is mandatory https://cmake.org/cmake/help/latest/policy/CMP0000.html#policy:CMP0000

Haha, excellent point.

Ok, in that case I guess we should change to 2.6.4..3.20.0 (or whatever is the latest version we can test).

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

No branches or pull requests

3 participants