summaryrefslogtreecommitdiff
path: root/Modules/CMakeSwiftInformation.cmake
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-05-21 08:32:33 -0700
committerSaleem Abdulrasool <compnerd@compnerd.org>2019-05-21 08:38:23 -0700
commit0fbf936b4630ca9db0d492d8c7e583f45d959b45 (patch)
treed7f3766c2f50d37755b9945e3b1ebc06c1edb6eb /Modules/CMakeSwiftInformation.cmake
parent0bf53483295a4b7de358e8b85ad44866d89633c5 (diff)
downloadcmake-0fbf936b4630ca9db0d492d8c7e583f45d959b45.tar.gz
Modules: remove `CMAKE_INCLUDE_FLAG_SEP_Swift`
The include flag specifier should be specified multiply. The separator was being misused for adding a space after the `-I` flag. Correct this to get multiple include paths correct.
Diffstat (limited to 'Modules/CMakeSwiftInformation.cmake')
-rw-r--r--Modules/CMakeSwiftInformation.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/CMakeSwiftInformation.cmake b/Modules/CMakeSwiftInformation.cmake
index 64e7f99e7b..aa5f260a88 100644
--- a/Modules/CMakeSwiftInformation.cmake
+++ b/Modules/CMakeSwiftInformation.cmake
@@ -17,8 +17,7 @@ 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)