diff --git a/CMakeLists.txt b/CMakeLists.txt index f4df1495..402822d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,7 +111,7 @@ if(APPLE) endif() # Seems necessary from macOS 10.15 - set(CMAKE_INSTALL_RPATH "/usr/local/lib") + set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") endif(APPLE) if (BEAGLE_OPTIMIZE_FOR_NATIVE_ARCH)