Explorar el Código

Merge topic 'swift-rpath-darwin' into release-3.16

ff6c336127 Swift: support `-rpath` on Darwin

Acked-by: Kitware Robot <[email protected]>
Merge-request: !4059
Brad King hace 6 años
padre
commit
3a87ce6c96
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Modules/CMakeSwiftInformation.cmake

+ 1 - 1
Modules/CMakeSwiftInformation.cmake

@@ -24,7 +24,7 @@ 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)
+if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
   set(CMAKE_SHARED_LIBRARY_RUNTIME_Swift_FLAG "-Xlinker -rpath -Xlinker ")
   set(CMAKE_SHARED_LIBRARY_RUNTIME_Swift_FLAG_SEP ":")
 endif()