summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Swift
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/Swift
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/Swift')
-rw-r--r--Tests/RunCMake/Swift/RunCMakeTest.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/Swift/RunCMakeTest.cmake b/Tests/RunCMake/Swift/RunCMakeTest.cmake
index 4864295..de99042 100644
--- a/Tests/RunCMake/Swift/RunCMakeTest.cmake
+++ b/Tests/RunCMake/Swift/RunCMakeTest.cmake
@@ -4,6 +4,10 @@ if(RunCMake_GENERATOR STREQUAL Xcode)
if(XCODE_BELOW_6_1)
run_cmake(XcodeTooOld)
endif()
+elseif(RunCMake_GENERATOR STREQUAL Ninja)
+ if(CMAKE_Swift_COMPILER)
+ # Add Ninja-specific Swift tests here.
+ endif()
else()
run_cmake(NotSupported)
endif()