Skip to content

Commit

Permalink
Fix Linux INSTALL_RPATHs.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCallow committed Sep 14, 2024
1 parent dda210d commit 757da79
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function(set_test_properties test_target)
)
elseif(LINUX)
set_target_properties(${test_target} PROPERTIES
INSTALL_RPATH "$ORIGIN;$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../lib"
)
endif()
endfunction()
Expand Down
2 changes: 1 addition & 1 deletion tests/loadtests/glloadtests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function( create_gl_target target version sources common_resources test_images
# /usr/local/bin.

set_target_properties( ${target} PROPERTIES
INSTALL_RPATH "\$ORIGIN:${CMAKE_INSTALL_FULL_LIBDIR}"
INSTALL_RPATH "\$ORIGIN;${CMAKE_INSTALL_FULL_LIBDIR}"
)

######### IMPORTANT ######
Expand Down
2 changes: 1 addition & 1 deletion tests/loadtests/vkloadtests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ else()
# /usr/local/bin.

set_target_properties( vkloadtests PROPERTIES
INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}"
INSTALL_RPATH "\$ORIGIN;${CMAKE_INSTALL_FULL_LIBDIR}"
)

######### IMPORTANT ######
Expand Down
2 changes: 1 addition & 1 deletion tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function(set_tool_properties tool_target)
# Check DT_RUNPATH with one of
# - readelf -d <file> | head -20
# - objdump -x <file> | grep 'R.*PATH'
INSTALL_RPATH "$ORIGIN;$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN;${CMAKE_INSTALL_FULL_LIBDIR}"
)
endif()
endfunction()
Expand Down

0 comments on commit 757da79

Please sign in to comment.