sharkdp/dbg-macro

CMake < 3.10 deprecation.

Open

#142 aperta il 24 gen 2025

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C++ (276 fork)github user discovery
good first issue

Metriche repository

Star
 (3231 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor