diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0ed7eeafff..b9674656ca 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -103,9 +103,9 @@ endif() if(ALICEVISION_USE_RPATH) if(APPLE) set(CMAKE_MACOSX_RPATH 1) - set(CMAKE_INSTALL_RPATH "@loader_path/../${CMAKE_INSTALL_LIBDIR}:@loader_path") + set(CMAKE_INSTALL_RPATH "@loader_path/../${CMAKE_INSTALL_LIBDIR};@loader_path") elseif(UNIX) - set(CMAKE_INSTALL_RPATH "\\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}:\\$ORIGIN") + set(CMAKE_INSTALL_RPATH "\\$ORIGIN/../${CMAKE_INSTALL_LIBDIR};\\$ORIGIN") endif() endif()