readerwriterqueue icon indicating copy to clipboard operation
readerwriterqueue copied to clipboard

Deprecation warning when building with recent versions of CMake

Open jonathon-bell opened this issue 6 months ago • 1 comments

First, thanks for a great library!

Issue

When building with a recent version of CMake (3.31.7) I see the following warning:

build>cmake ..
CMake Deprecation Warning at CMakeLists.txt:1 (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.


-- The C compiler identification is Clang 20.1.7
-- The CXX compiler identification is Clang 20.1.7
-- Detecting...

I think CMake is complaining that the readerwriterqueue project:

  • declares a requirement of CMake 3.9 or better, but
  • does not explicitly declare compatibility with more recent versions of CMake than 3.9,...
  • and CMake 3.9 will cease to be supported soon.

Seems like the easiest thing to do is just bump the minimum required version to v3.10?

I'd be happy submit a PR that does this? Regards, Jonathon

jonathon-bell avatar Jun 24 '25 20:06 jonathon-bell