diff --git a/CMakeLists.txt b/CMakeLists.txt index cffb5362..be3509e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,10 @@ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0") # Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24: cmake_policy(SET CMP0135 NEW) endif() +if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.25.0") + # needed by DynamicVersion + cmake_policy(SET CMP0140 NEW) +endif() ############################# Version and Metadata #############################