summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CheckCompilerFlag
diff options
context:
space:
mode:
authorEvan Wilde <etceterawilde@gmail.com>2023-11-13 16:40:51 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-17 13:43:21 (GMT)
commit0f80101b73c175dd0272097a5ef9d58f7c35b093 (patch)
tree05b510986b5aaf407b51bca0ceb544a388af21df /Tests/RunCMake/CheckCompilerFlag
parentc1d787e4734ca107e8ae084b3832e441651a6266 (diff)
downloadCMake-0f80101b73c175dd0272097a5ef9d58f7c35b093.zip
CMake-0f80101b73c175dd0272097a5ef9d58f7c35b093.tar.gz
CMake-0f80101b73c175dd0272097a5ef9d58f7c35b093.tar.bz2
Tests: Update Swift tests to use CMP0157 NEW behavior
Fixing failing tests caused by introduction of new policy + warning when the policy is not set.
Diffstat (limited to 'Tests/RunCMake/CheckCompilerFlag')
-rw-r--r--Tests/RunCMake/CheckCompilerFlag/CheckCompilerFlagSwift.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/CheckCompilerFlag/CheckCompilerFlagSwift.cmake b/Tests/RunCMake/CheckCompilerFlag/CheckCompilerFlagSwift.cmake
index 23b3006..c85783d 100644
--- a/Tests/RunCMake/CheckCompilerFlag/CheckCompilerFlagSwift.cmake
+++ b/Tests/RunCMake/CheckCompilerFlag/CheckCompilerFlagSwift.cmake
@@ -1,3 +1,4 @@
+cmake_policy(SET CMP0157 NEW)
enable_language (Swift)
include(CheckCompilerFlag)