Skip to content

Commit ba97833

Browse files
fix: INSTALL_RPATH for linux using lib64 (#975)
I found that the RPATH is not properly set for linux distributions that use lib64 as the default library directory(e.g., RedHat or CentOS). I changed the RPATH to follow the directory which libktx is actually installed by using the value of CMAKE_INSTALL_LIBDIR.
1 parent aa6af91 commit ba97833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function(set_tool_properties tool_target)
5555
# Check DT_RUNPATH with one of
5656
# - readelf -d <file> | head -20
5757
# - objdump -x <file> | grep 'R.*PATH'
58-
INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../lib"
58+
INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}"
5959
)
6060
endif()
6161
endfunction()

0 commit comments

Comments
 (0)