Skip to content

Commit 3ea08fe

Browse files
committed
build: add workaround for CMake
It seems that `RPATH` is not properly handled by CMake on executables. Restore the old workaround for the time being.
1 parent 2c2f51d commit 3ea08fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/Tools/XDGTestHelper/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ target_link_libraries(xdgTestHelper PRIVATE
66
FoundationXML)
77
set_target_properties(xdgTestHelper PROPERTIES
88
BUILD_RPATH "$<TARGET_FILE_DIR:swiftDispatch>;$<TARGET_FILE_DIR:Foundation>;$<TARGET_FILE_DIR:FoundationNetworking>;$<TARGET_FILE_DIR:FoundationXML>")
9+
if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
10+
target_link_options(xdgTestHelper PRIVATE
11+
"SHELL:-Xlinker -rpath -Xlinker $<TARGET_FILE_DIR:swiftDispatch>:$<TARGET_FILE_DIR:Foundation>:$<TARGET_FILE_DIR:FoundationNetworking>:$<TARGET_FILE_DIR:FoundationXML>")
12+
endif()

0 commit comments

Comments
 (0)