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 Deprecation Warning #48

Open
catsidhe opened this issue Aug 27, 2024 · 1 comment
Open

CMake Deprecation Warning #48

catsidhe opened this issue Aug 27, 2024 · 1 comment

Comments

@catsidhe
Copy link

When including the library via add_subdirectory() in own CMakeLists.txt, I get:

CMake Deprecation Warning at ordered-map/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 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.

Would it be possible to resolve this in the next library update?
For reference, my CMake version is 3.30.2

@catsidhe
Copy link
Author

catsidhe commented Nov 9, 2024

Thanks - this fix 5bbd647 worked well (for a while). Unfortunately, the newest CMake (3.31) is unhappy again, now requiring 3.10 at least.

"Changed in version 3.31: Compatibility with versions of CMake older than 3.10 is deprecated. Calls to cmake_minimum_required(VERSION) or cmake_policy(VERSION) that do not specify at least 3.10 as their policy version (optionally via ...) will produce a deprecation warning in CMake 3.31 and above."

This is a minor issue, of course, but an annoyance nevertheless.

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

1 participant