diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e8a528..0df533a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ -# 3.5 is actually available almost everywhere, but this a good minimum. -# 3.14 as the upper policy limit avoids CMake deprecation warnings. -cmake_minimum_required(VERSION 3.4...3.14) +# 3.5 is actually available almost everywhere. +# 3.30 as the upper policy limit avoids CMake deprecation warnings. +cmake_minimum_required(VERSION 3.5...3.30) # enable MSVC_RUNTIME_LIBRARY target property # see https://cmake.org/cmake/help/latest/policy/CMP0091.html diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1c60c07..6949d29 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -3,7 +3,6 @@ find_package(Threads REQUIRED) set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) set(BUILD_MOCK ON CACHE BOOL "" FORCE) set(INSTALL_GTEST OFF CACHE BOOL "" FORCE) -set(CMAKE_POLICY_DEFAULT_CMP0048 NEW) if(YAML_USE_SYSTEM_GTEST) find_package(GTest)