ordered-map icon indicating copy to clipboard operation
ordered-map copied to clipboard

CMake Deprecation Warning

Open catsidhe opened this issue 1 year ago • 1 comments

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 avatar Aug 27 '24 16:08 catsidhe

Thanks - this fix https://github.com/Tessil/ordered-map/commit/5bbd64709218b9f9fc92bf2bbbf7cae6f5e067b6 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.

catsidhe avatar Nov 09 '24 14:11 catsidhe

Sorry for the long delay. I created a new release with a CMake minimum version of 3.10.

Tessil avatar Nov 02 '25 19:11 Tessil