summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-08 13:19:10 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-07-08 13:19:10 (GMT)
commit8c1460653e8f21b9e09324617836aeec18f350b7 (patch)
tree16e68097c0f17ec6c8b72dfd5d6c6b123903db81 /Tests/RunCMake/CMakeLists.txt
parentad91d0edd5b8e56dc6afffa38e01bcc7d0d265cd (diff)
parentbf11253163b54f7c18b001cb00973a6341ee859b (diff)
downloadCMake-8c1460653e8f21b9e09324617836aeec18f350b7.zip
CMake-8c1460653e8f21b9e09324617836aeec18f350b7.tar.gz
CMake-8c1460653e8f21b9e09324617836aeec18f350b7.tar.bz2
Merge topic 'add-apple-swift-language'
bf112531 Add rudimentary support for the Apple Swift language with Xcode
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 743ef4b..c0ac5c8 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -59,6 +59,10 @@ function(add_RunCMake_test_group test types)
endforeach()
endfunction()
+if(XCODE_VERSION AND "${XCODE_VERSION}" VERSION_LESS 6.1)
+ set(Swift_ARGS -DXCODE_BELOW_6_1=1)
+endif()
+
if(XCODE_VERSION AND "${XCODE_VERSION}" VERSION_LESS 3)
set(GeneratorToolset_ARGS -DXCODE_BELOW_3=1)
endif()
@@ -132,6 +136,7 @@ add_RunCMake_test(GNUInstallDirs)
add_RunCMake_test(TargetPropertyGeneratorExpressions)
add_RunCMake_test(Languages)
add_RunCMake_test(ObjectLibrary)
+add_RunCMake_test(Swift)
add_RunCMake_test(TargetObjects)
add_RunCMake_test(TargetSources)
add_RunCMake_test(find_dependency)