diff options
author | Brad King <brad.king@kitware.com> | 2019-10-31 13:10:10 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-10-31 13:11:19 (GMT) |
commit | abd223cf05ac033e6c79b2487059009fbab0eef0 (patch) | |
tree | 19fa4048aca4b96df0a79cdd6a66d4f649eba025 /Modules | |
parent | e5b90743e6bb169bd4bd6b1b8672f3cf3091d6e8 (diff) | |
parent | 1e05f89f4b77f3610122b54d272a41966bf24a72 (diff) | |
download | CMake-abd223cf05ac033e6c79b2487059009fbab0eef0.zip CMake-abd223cf05ac033e6c79b2487059009fbab0eef0.tar.gz CMake-abd223cf05ac033e6c79b2487059009fbab0eef0.tar.bz2 |
Merge topic 'swift-rpath'
1e05f89f4b Swift: support `BUILD_RPATH` properties
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3965
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeSwiftInformation.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeSwiftInformation.cmake b/Modules/CMakeSwiftInformation.cmake index 69d3900..1f0e8f3 100644 --- a/Modules/CMakeSwiftInformation.cmake +++ b/Modules/CMakeSwiftInformation.cmake @@ -24,6 +24,10 @@ elseif(NOT CMAKE_SYSTEM_NAME STREQUAL Windows) set(CMAKE_SHARED_LIBRARY_SONAME_Swift_FLAG "-Xlinker -soname -Xlinker ") endif() +if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows AND NOT CMAKE_SYSTEM_NAME STREQUAL Darwin) + set(CMAKE_SHARED_LIBRARY_RUNTIME_Swift_FLAG "-Xlinker -rpath -Xlinker ") +endif() + set(CMAKE_Swift_COMPILE_OPTIONS_TARGET "-target ") set(CMAKE_Swift_COMPILE_OPTIONS_EXTERNAL_TOOLCHAIN "-tools-directory ") # NOTE(compnerd) the `-sdk` support is not yet ready in the compiler; when that |