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.
This commit is contained in:
Evan Wilde
2023-11-17 08:43:21 -05:00
committed by Brad King
parent c1d787e473
commit 0f80101b73
5 changed files with 5 additions and 0 deletions
@@ -1,3 +1,4 @@
cmake_policy(SET CMP0157 NEW)
enable_language (Swift)
include(CheckCompilerFlag)
@@ -1,3 +1,4 @@
cmake_policy(SET CMP0157 NEW)
enable_language(Swift)
include(CheckSourceCompiles)
@@ -1,3 +1,4 @@
cmake_policy(SET CMP0157 NEW)
enable_language(Swift)
# Write initial files to build directory
+1
View File
@@ -1,3 +1,4 @@
cmake_policy(SET CMP0157 NEW)
enable_language(Swift)
add_executable(hello1 hello.swift)
set_target_properties(hello1 PROPERTIES ENABLE_EXPORTS TRUE)
@@ -1,3 +1,4 @@
cmake_policy(SET CMP0157 NEW)
enable_language(Swift)
add_executable(E E.swift)
set_target_properties(E PROPERTIES