summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-23 12:53:16 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-05-23 13:02:55 (GMT)
commit22df62b58d8e2b9af5e754f4ed413d90088eb79e (patch)
tree1e547f89269e31f0cdd12cbb190796f396c5655f
parent4f739a4e47d450406818804e45e5daaf452b39a8 (diff)
parent24223ac84bd1610cef2ab0935233387227653dfd (diff)
downloadCMake-22df62b58d8e2b9af5e754f4ed413d90088eb79e.zip
CMake-22df62b58d8e2b9af5e754f4ed413d90088eb79e.tar.gz
CMake-22df62b58d8e2b9af5e754f4ed413d90088eb79e.tar.bz2
Merge topic 'swift-flag-variables'
24223ac84b Modules: add Swift MSVC_RUNTIME_LIBRARY flags 7e636fd8e0 Modules: add `CMAKE_Swift_FRAMEWORK_SEARCH_FLAG` 0fbf936b46 Modules: remove `CMAKE_INCLUDE_FLAG_SEP_Swift` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3353
-rw-r--r--Modules/CMakeSwiftInformation.cmake12
1 files changed, 10 insertions, 2 deletions
diff --git a/Modules/CMakeSwiftInformation.cmake b/Modules/CMakeSwiftInformation.cmake
index 1150498..2bba178 100644
--- a/Modules/CMakeSwiftInformation.cmake
+++ b/Modules/CMakeSwiftInformation.cmake
@@ -17,11 +17,19 @@ if(CMAKE_Swift_COMPILER_ID)
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_Swift_COMPILER_ID}-Swift OPTIONAL)
endif()
-set(CMAKE_INCLUDE_FLAG_Swift "-I")
-set(CMAKE_INCLUDE_FLAG_SEP_Swift " ")
+set(CMAKE_INCLUDE_FLAG_Swift "-I ")
set(CMAKE_Swift_DEFINE_FLAG -D)
set(CMAKE_Swift_COMPILE_OPTIONS_TARGET "-target ")
set(CMAKE_Swift_COMPILER_ARG1 -frontend)
+set(CMAKE_Swift_FRAMEWORK_SEARCH_FLAG "-F ")
+
+# NOTE(compnerd) use the short form for convenience and ease of search. They
+# are treated equivalent to their long form names as well as custom Swift
+# specific names.
+set(CMAKE_Swift_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreaded -libc MT)
+set(CMAKE_Swift_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDLL -libc MD)
+set(CMAKE_Swift_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDebug -libc MTd)
+set(CMAKE_Swift_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDebugDLL -libc MDd)
set(CMAKE_Swift_FLAGS_DEBUG_INIT "-g")
set(CMAKE_Swift_FLAGS_RELEASE_INIT "-O")