diff options
author | Brad King <brad.king@kitware.com> | 2023-02-06 19:23:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-02-11 11:24:22 (GMT) |
commit | 1edf1385064d67885bafe09d472f82bf62d34641 (patch) | |
tree | 44bbd397ed6def8d51e71a473a6817c2a1386339 /Tests/RunCMake/FindSWIG | |
parent | 65a1c379eeb5845a910c32d3ccfd155b0ddb55af (diff) | |
download | CMake-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/FindSWIG')
-rw-r--r-- | Tests/RunCMake/FindSWIG/version-exact.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/FindSWIG/version-range.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/FindSWIG/version.cmake | 2 |
3 files changed, 0 insertions, 6 deletions
diff --git a/Tests/RunCMake/FindSWIG/version-exact.cmake b/Tests/RunCMake/FindSWIG/version-exact.cmake index ec3651f..98903ff 100644 --- a/Tests/RunCMake/FindSWIG/version-exact.cmake +++ b/Tests/RunCMake/FindSWIG/version-exact.cmake @@ -1,5 +1,3 @@ -cmake_minimum_required (VERSION 3.18...3.19) - find_package (SWIG) if (NOT SWIG_FOUND) message (FATAL_ERROR "Failed to find SWIG") diff --git a/Tests/RunCMake/FindSWIG/version-range.cmake b/Tests/RunCMake/FindSWIG/version-range.cmake index 7ba1134..e776961 100644 --- a/Tests/RunCMake/FindSWIG/version-range.cmake +++ b/Tests/RunCMake/FindSWIG/version-range.cmake @@ -1,5 +1,3 @@ -cmake_minimum_required (VERSION 3.18...3.19) - find_package (SWIG) if (NOT SWIG_FOUND) message (FATAL_ERROR "Failed to find SWIG") diff --git a/Tests/RunCMake/FindSWIG/version.cmake b/Tests/RunCMake/FindSWIG/version.cmake index a4f1c39..b5ed6a7 100644 --- a/Tests/RunCMake/FindSWIG/version.cmake +++ b/Tests/RunCMake/FindSWIG/version.cmake @@ -1,5 +1,3 @@ -cmake_minimum_required (VERSION 3.18...3.19) - find_package (SWIG 1.0) if (NOT SWIG_FOUND) message (FATAL_ERROR "Failed to find SWIG with version 1.0") |