Skip to content

CMake Deprecation Warning for version < 3.10 starting with CMake 3.31 #1598

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

Open
oold opened this issue Feb 11, 2025 · 2 comments
Open

CMake Deprecation Warning for version < 3.10 starting with CMake 3.31 #1598

oold opened this issue Feb 11, 2025 · 2 comments

Comments

@oold
Copy link

oold commented Feb 11, 2025

Describe the bug
CMake 3.31 emits a deprecation warning.

To Reproduce
Steps to reproduce the behavior:

  1. Configure project with CMake 3.31.

Expected behavior
No deprecation warning is emitted.

Additional context
CMake output:

CMake Deprecation Warning at jsoncpp/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

Related issue: #1521

@StormBytePP
Copy link

StormBytePP commented Mar 13, 2025

Since there are related issues to older version I suggest to update the title indicating (<3.10) so it is not confused with the past issues.

@oold oold changed the title CMake Deprecation Warning with CMake 3.31 CMake Deprecation Warning for version < 3.10 starting with CMake 3.31 Mar 13, 2025
@oold
Copy link
Author

oold commented Mar 13, 2025

For reference: https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html#policy-version

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

2 participants