summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-09 14:28:15 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-08-09 14:30:45 (GMT)
commit6f3c429ee82eda7fccf70de32d6f8cba4079e94e (patch)
tree6b12e62f157d85beb6f89054df97ee014a4befa4
parent1a901ed09e27387f14d419adb407e7964d176f37 (diff)
parent2171f6ec0ea3ca373db94bc55d8b7db999de97cc (diff)
downloadCMake-6f3c429ee82eda7fccf70de32d6f8cba4079e94e.zip
CMake-6f3c429ee82eda7fccf70de32d6f8cba4079e94e.tar.gz
CMake-6f3c429ee82eda7fccf70de32d6f8cba4079e94e.tar.bz2
Merge topic 'soname-darwin'
2171f6ec0e Swift: correct SONAME flag for Darwin targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3640
-rw-r--r--Modules/CMakeSwiftInformation.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/CMakeSwiftInformation.cmake b/Modules/CMakeSwiftInformation.cmake
index 58b0813..54e441c 100644
--- a/Modules/CMakeSwiftInformation.cmake
+++ b/Modules/CMakeSwiftInformation.cmake
@@ -18,7 +18,9 @@ if(CMAKE_Swift_COMPILER_ID)
endif()
set(CMAKE_INCLUDE_FLAG_Swift "-I ")
-if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows AND NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
+if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
+ set(CMAKE_SHARED_LIBRARY_SONAME_Swift_FLAG "-Xlinker -install_name -Xlinker ")
+elseif(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
set(CMAKE_SHARED_LIBRARY_SONAME_Swift_FLAG "-Xlinker -soname -Xlinker ")
endif()