Skip to content

Commit dd599d0

Browse files
authored
Merge pull request #303 from buttaface/rpath
[CMake] fix runpath for ELF platforms
2 parents 1764c54 + fd6118a commit dd599d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
5656
target_link_libraries(XCTest PRIVATE
5757
dispatch
5858
Foundation)
59+
if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
60+
target_link_options(XCTest PRIVATE "SHELL:-no-toolchain-stdlib-rpath")
61+
endif()
5962
endif()
6063
set_target_properties(XCTest PROPERTIES
6164
Swift_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/swift

0 commit comments

Comments
 (0)