From bd0139eaaba4ec18c789f2b115b41b12a68c2b7a Mon Sep 17 00:00:00 2001 From: Stanislav Dmitrenko <7953703+avently@users.noreply.github.com> Date: Wed, 26 Jul 2023 22:13:06 +0300 Subject: [PATCH] desktop: Linux lib path (#2780) --- .../common/src/commonMain/cpp/desktop/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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.