diff options
author | Brad King <brad.king@kitware.com> | 2019-10-31 13:08:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-31 13:08:34 (GMT) |
commit | a53921b016e05693e5f64a8d452c689a9aa4279f (patch) | |
tree | e5e0849b7c2885b511f389e94ee2073a9bfaeff5 /Modules/CMakeSwiftInformation.cmake | |
parent | d3c8610556fa5d22182142b7306542703c8f5a9f (diff) | |
parent | 1e05f89f4b77f3610122b54d272a41966bf24a72 (diff) | |
download | CMake-a53921b016e05693e5f64a8d452c689a9aa4279f.zip CMake-a53921b016e05693e5f64a8d452c689a9aa4279f.tar.gz CMake-a53921b016e05693e5f64a8d452c689a9aa4279f.tar.bz2 |
Merge branch 'swift-rpath' into release-3.16
Merge-request: !3965
Diffstat (limited to 'Modules/CMakeSwiftInformation.cmake')
-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 |