summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/LinkerSelection/AppleClassic.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/LinkerSelection/AppleClassic.cmake')
-rw-r--r--Tests/RunCMake/LinkerSelection/AppleClassic.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/Tests/RunCMake/LinkerSelection/AppleClassic.cmake b/Tests/RunCMake/LinkerSelection/AppleClassic.cmake
index 62a12ad..170ae0c 100644
--- a/Tests/RunCMake/LinkerSelection/AppleClassic.cmake
+++ b/Tests/RunCMake/LinkerSelection/AppleClassic.cmake
@@ -1,7 +1,12 @@
-
enable_language(C)
set(CMAKE_LINKER_TYPE APPLE_CLASSIC)
add_executable(main main.c)
target_link_libraries(main PRIVATE m m)
+
+if(CMake_TEST_Swift)
+ enable_language(Swift)
+ add_executable(main_swift main.swift)
+ target_link_libraries(main_swift PRIVATE m m)
+endif()