1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-23 00:48:55 +08:00

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-13 08:40:51 -08:00
committed by Brad King
parent c1d787e473
commit 0f80101b73
5 changed files with 5 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
cmake_policy(SET CMP0157 NEW)
enable_language (Swift)
include(CheckCompilerFlag)

View File

@@ -1,3 +1,4 @@
cmake_policy(SET CMP0157 NEW)
enable_language(Swift)
include(CheckSourceCompiles)

View File

@@ -1,3 +1,4 @@
cmake_policy(SET CMP0157 NEW)
enable_language(Swift)
# Write initial files to build directory

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)

View File

@@ -1,3 +1,4 @@
cmake_policy(SET CMP0157 NEW)
enable_language(Swift)
add_executable(E E.swift)
set_target_properties(E PROPERTIES