summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0004
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/CMP0004
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/CMP0004')
-rw-r--r--Tests/RunCMake/CMP0004/CMP0004-NEW.cmake3
-rw-r--r--Tests/RunCMake/CMP0004/CMP0004-OLD.cmake3
-rw-r--r--Tests/RunCMake/CMP0004/CMP0004-WARN-stderr.txt0
-rw-r--r--Tests/RunCMake/CMP0004/CMP0004-policy-genex.cmake3
-rw-r--r--Tests/RunCMake/CMP0004/CMakeLists.txt2
5 files changed, 1 insertions, 10 deletions
diff --git a/Tests/RunCMake/CMP0004/CMP0004-NEW.cmake b/Tests/RunCMake/CMP0004/CMP0004-NEW.cmake
index f42d8e4..3d861fb 100644
--- a/Tests/RunCMake/CMP0004/CMP0004-NEW.cmake
+++ b/Tests/RunCMake/CMP0004/CMP0004-NEW.cmake
@@ -1,6 +1,3 @@
-
-cmake_minimum_required(VERSION 2.8.4)
-
cmake_policy(SET CMP0004 NEW)
add_library(foo SHARED empty.cpp)
diff --git a/Tests/RunCMake/CMP0004/CMP0004-OLD.cmake b/Tests/RunCMake/CMP0004/CMP0004-OLD.cmake
index 3fa58b6..32c1474 100644
--- a/Tests/RunCMake/CMP0004/CMP0004-OLD.cmake
+++ b/Tests/RunCMake/CMP0004/CMP0004-OLD.cmake
@@ -1,6 +1,3 @@
-
-cmake_minimum_required(VERSION 2.8.4)
-
cmake_policy(SET CMP0004 OLD)
add_library(foo SHARED empty.cpp)
diff --git a/Tests/RunCMake/CMP0004/CMP0004-WARN-stderr.txt b/Tests/RunCMake/CMP0004/CMP0004-WARN-stderr.txt
deleted file mode 100644
index e69de29..0000000
--- a/Tests/RunCMake/CMP0004/CMP0004-WARN-stderr.txt
+++ /dev/null
diff --git a/Tests/RunCMake/CMP0004/CMP0004-policy-genex.cmake b/Tests/RunCMake/CMP0004/CMP0004-policy-genex.cmake
index 2970476..b7cd7ff 100644
--- a/Tests/RunCMake/CMP0004/CMP0004-policy-genex.cmake
+++ b/Tests/RunCMake/CMP0004/CMP0004-policy-genex.cmake
@@ -1,6 +1,3 @@
-
-cmake_minimum_required(VERSION 2.8.4)
-
cmake_policy(SET CMP0004 NEW)
add_library(foo SHARED empty.cpp)
diff --git a/Tests/RunCMake/CMP0004/CMakeLists.txt b/Tests/RunCMake/CMP0004/CMakeLists.txt
index 12cd3c7..93ee9df 100644
--- a/Tests/RunCMake/CMP0004/CMakeLists.txt
+++ b/Tests/RunCMake/CMP0004/CMakeLists.txt
@@ -1,3 +1,3 @@
-cmake_minimum_required(VERSION 2.8.4)
+cmake_minimum_required(VERSION 3.5)
project(${RunCMake_TEST} NONE)
include(${RunCMake_TEST}.cmake)