We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7efdd76 + a9d4675 commit 18c42c1Copy full SHA for 18c42c1
cmake/modules/SwiftModuleInstallation.cmake
@@ -32,12 +32,14 @@ function(_swift_testing_install_target module)
32
33
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
34
set(lib_destination_dir "lib/${swift}/${swift_os}/testing")
35
- set_property(TARGET ${module} PROPERTY
36
- INSTALL_RPATH "@loader_path/..")
+ set_target_properties(${module} PROPERTIES
+ INSTALL_RPATH "@loader_path/.."
37
+ INSTALL_REMOVE_ENVIRONMENT_RPATH ON)
38
else()
39
set(lib_destination_dir "lib/${swift}/${swift_os}")
40
- INSTALL_RPATH "$ORIGIN")
41
+ INSTALL_RPATH "$ORIGIN"
42
43
endif()
44
45
install(TARGETS ${module}
0 commit comments