summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-10-02 21:01:14 (GMT)
committerBrad King <brad.king@kitware.com>2024-10-03 15:52:22 (GMT)
commitf4aa34daa724cf80dd407d14cd5a091b6e390c62 (patch)
tree2da356f43aa70cf335fa0f8a98d2ee08d8c51a3d /Tests/RunCMake/try_compile
parent1d38d529958865cdb22d49c5f3f2f487558ccee2 (diff)
downloadCMake-f4aa34daa724cf80dd407d14cd5a091b6e390c62.zip
CMake-f4aa34daa724cf80dd407d14cd5a091b6e390c62.tar.gz
CMake-f4aa34daa724cf80dd407d14cd5a091b6e390c62.tar.bz2
Tests/RunCMake: Update cmake_minimum_required versions to 3.10
For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.10 where possible.
Diffstat (limited to 'Tests/RunCMake/try_compile')
-rw-r--r--Tests/RunCMake/try_compile/CMakeLists.txt7
-rw-r--r--Tests/RunCMake/try_compile/proj/CMakeLists.txt2
2 files changed, 7 insertions, 2 deletions
diff --git a/Tests/RunCMake/try_compile/CMakeLists.txt b/Tests/RunCMake/try_compile/CMakeLists.txt
index 93ee9df..ab5008d 100644
--- a/Tests/RunCMake/try_compile/CMakeLists.txt
+++ b/Tests/RunCMake/try_compile/CMakeLists.txt
@@ -1,3 +1,8 @@
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.10)
+if(RunCMake_TEST STREQUAL "CMP0066")
+ cmake_policy(VERSION 3.6) # old enough to not set CMP0066
+elseif(RunCMake_TEST STREQUAL "CMP0067")
+ cmake_policy(VERSION 3.7) # old enough to not set CMP0067
+endif()
project(${RunCMake_TEST} NONE)
include(${RunCMake_TEST}.cmake)
diff --git a/Tests/RunCMake/try_compile/proj/CMakeLists.txt b/Tests/RunCMake/try_compile/proj/CMakeLists.txt
index 09feca4..d257b5e 100644
--- a/Tests/RunCMake/try_compile/proj/CMakeLists.txt
+++ b/Tests/RunCMake/try_compile/proj/CMakeLists.txt
@@ -1,2 +1,2 @@
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.10)
project(TestProject NONE)