sharkdp/dbg-macro

CMake < 3.10 deprecation.

Open

#142 opened on Jan 24, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C++ (276 forks)github user discovery
good first issue

Repository metrics

Stars
 (3,231 stars)
PR merge metrics
 (PR metrics pending)

Description

I suggest updating CMakeLists.txt to set cmake_minimum_required to a version >= 3.10 or, as the non-suppressable CMake warning says, use the <min>...<max> syntax.

Here's the warning that constantly grabs attention when using this library:

CMake Deprecation Warning at build/_deps/dbg-macro-src/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.

Since I include the library by using FetchContent I can't manually change the library's CMakeLists.txt persistently, without losing the flexibility of using FetchContent.

Contributor guide