summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-04-23 17:05:25 (GMT)
committerBrad King <brad.king@kitware.com>2019-05-17 14:09:35 (GMT)
commita9180ccf9a9e845658ba455e2dbc2447b18d2654 (patch)
treee133ce290921b16c31b1cdc19186d269f525f5ab /Tests/RunCMake/CMakeLists.txt
parentd745551fb6311f5db6e8133df63a7fc410e8a68b (diff)
downloadCMake-a9180ccf9a9e845658ba455e2dbc2447b18d2654.zip
CMake-a9180ccf9a9e845658ba455e2dbc2447b18d2654.tar.gz
CMake-a9180ccf9a9e845658ba455e2dbc2447b18d2654.tar.bz2
Tests: add a check for the Swift compiler
This ensures that the tests only run when the Swift compiler is present.
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index d57138b..0ccfca8 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -205,7 +205,7 @@ if(UNIX AND CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG AND CMAKE_EXECUTABLE_FORMAT STRE
add_RunCMake_test(RuntimePath)
endif()
add_RunCMake_test(ScriptMode)
-add_RunCMake_test(Swift)
+add_RunCMake_test(Swift -DCMAKE_Swift_COMPILER=${CMAKE_Swift_COMPILER})
add_RunCMake_test(TargetObjects)
add_RunCMake_test(TargetSources)
add_RunCMake_test(ToolchainFile)