summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeSwiftInformation.cmake
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-06-06 05:01:16 (GMT)
committerSaleem Abdulrasool <compnerd@compnerd.org>2019-06-06 22:28:43 (GMT)
commita982916304fc7a66edb7a587144cb192f13ef6be (patch)
tree5674b602cbb9b8f0fc94c65d69c60d35f5590be5 /Modules/CMakeSwiftInformation.cmake
parent0b3ba05a9beada98e8e97445acef7ef2f4efb3e3 (diff)
downloadCMake-a982916304fc7a66edb7a587144cb192f13ef6be.zip
CMake-a982916304fc7a66edb7a587144cb192f13ef6be.tar.gz
CMake-a982916304fc7a66edb7a587144cb192f13ef6be.tar.bz2
Support per-language library link flags
This changes the behaviour of the generators to use a per-language library search path flag. This is needed for multi-language projects with different compilers (e.g. cl + gfortran). Since the adjusted variable has been part of the user settings, we control this based on a policy. Fixes: #19307
Diffstat (limited to 'Modules/CMakeSwiftInformation.cmake')
-rw-r--r--Modules/CMakeSwiftInformation.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeSwiftInformation.cmake b/Modules/CMakeSwiftInformation.cmake
index 21f18d4..6f99c1f 100644
--- a/Modules/CMakeSwiftInformation.cmake
+++ b/Modules/CMakeSwiftInformation.cmake
@@ -23,6 +23,8 @@ set(CMAKE_Swift_COMPILE_OPTIONS_TARGET "-target ")
set(CMAKE_Swift_COMPILER_ARG1 -frontend)
set(CMAKE_Swift_DEFINE_FLAG -D)
set(CMAKE_Swift_FRAMEWORK_SEARCH_FLAG "-F ")
+set(CMAKE_Swift_LIBRARY_PATH_FLAG "-L ")
+set(CMAKE_Swift_LIBRARY_PATH_TERMINATOR "")
set(CMAKE_Swift_LINKER_WRAPPER_FLAG "-Xlinker" " ")
set(CMAKE_Swift_RESPONSE_FILE_LINK_FLAG @)