diff --git a/apps/multiplatform/common/src/commonMain/cpp/desktop/CMakeLists.txt b/apps/multiplatform/common/src/commonMain/cpp/desktop/CMakeLists.txt index 2f8f119d75..849a6c98a7 100644 --- a/apps/multiplatform/common/src/commonMain/cpp/desktop/CMakeLists.txt +++ b/apps/multiplatform/common/src/commonMain/cpp/desktop/CMakeLists.txt @@ -19,6 +19,8 @@ project("app") if(UNIX AND NOT APPLE) set(OS_LIB_PATH "linux") set(OS_LIB_EXT "so") + # Makes ld search libs in the same dir as libapp-lib, not in system dirs + set(CMAKE_BUILD_RPATH "$ORIGIN") elseif(WIN32) set(OS_LIB_PATH "windows") set(OS_LIB_EXT "dll") @@ -37,9 +39,6 @@ else() set(OS_LIB_ARCH "${CMAKE_SYSTEM_PROCESSOR}") endif() -# Makes ld search libs in the same dir as libapp-lib, not in system dirs -#set(CMAKE_BUILD_RPATH "$ORIGIN") - # Creates and names a library, sets it as either STATIC # or SHARED, and provides the relative paths to its source code. # You can define multiple libraries, and CMake builds them for you.