Skip to content

Deprecation warning when building with recent versions of CMake #165

@jonathon-bell

Description

@jonathon-bell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions