diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 068d579d97..286b8fd6b6 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -1443,7 +1443,7 @@ if( NOT WIN32 AND NOT APPLE ) IF ("${INSTALL_RPATH}" STREQUAL "") set_target_properties(${PROJECT_NAME} PROPERTIES #allow libzmusic.so.1 library in same folder as executable at runtime - INSTALL_RPATH "\$ORIGIN" + INSTALL_RPATH "\$ORIGIN:\$ORIGIN/zmusic/build/source" BUILD_WITH_INSTALL_RPATH ON ) endif()