sharkdp/dbg-macro

CMake < 3.10 deprecation.

Open

#142 创建于 2025年1月24日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)C++ (276 fork)github user discovery
good first issue

仓库指标

Star
 (3,231 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南