diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 934c928993..8ab4c5a534 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -55,7 +55,7 @@ function(set_tool_properties tool_target) # Check DT_RUNPATH with one of # - readelf -d | head -20 # - objdump -x | grep 'R.*PATH' - INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../lib" + INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}" ) endif() endfunction()