summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/LinkItemValidation
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-06 19:23:09 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-11 11:24:22 (GMT)
commit1edf1385064d67885bafe09d472f82bf62d34641 (patch)
tree44bbd397ed6def8d51e71a473a6817c2a1386339 /Tests/RunCMake/LinkItemValidation
parent65a1c379eeb5845a910c32d3ccfd155b0ddb55af (diff)
downloadCMake-1edf1385064d67885bafe09d472f82bf62d34641.zip
CMake-1edf1385064d67885bafe09d472f82bf62d34641.tar.gz
CMake-1edf1385064d67885bafe09d472f82bf62d34641.tar.bz2
Tests/RunCMake: Update cmake_minimum_required versions
For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.5 where possible. Also, remove `cmake_minimum_required()` and `project()` calls from individual cases where they are handled by `CMakeLists.txt`.
Diffstat (limited to 'Tests/RunCMake/LinkItemValidation')
-rw-r--r--Tests/RunCMake/LinkItemValidation/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/RunCMake/LinkItemValidation/CMakeLists.txt b/Tests/RunCMake/LinkItemValidation/CMakeLists.txt
index 185cd91..6e1f8a2 100644
--- a/Tests/RunCMake/LinkItemValidation/CMakeLists.txt
+++ b/Tests/RunCMake/LinkItemValidation/CMakeLists.txt
@@ -1,6 +1,6 @@
-cmake_minimum_required(VERSION 2.8.12)
-if(NOT RunCMake_TEST MATCHES "^CMP0028")
- cmake_minimum_required(VERSION 3.22)
+cmake_minimum_required(VERSION 3.5)
+if(RunCMake_TEST MATCHES "^CMP0028")
+ cmake_minimum_required(VERSION 2.8.12)
endif()
project(${RunCMake_TEST} CXX)
include(${RunCMake_TEST}.cmake NO_POLICY_SCOPE) # policy used at end of dir