sharkdp/dbg-macro

CMake < 3.10 deprecation.

Open

#142 ouverte le 24 janv. 2025

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)C++ (276 forks)github user discovery
good first issue

Métriques du dépôt

Stars
 (3 231 stars)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur