[cmake] Require minimum CMake version 3.5

Soon CMake 4.0 will be released. It requires that projects
set a minimum required CMake version of 3.5. There is a
workaround with an additional flag, but it would is better
to increase the minimum required version.
This commit is contained in:
Christoph Grüninger
2025-03-24 08:32:25 +01:00
committed by Jesse Beder
parent 28f93bdec6
commit c9371de783
2 changed files with 3 additions and 4 deletions

View File

@@ -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)