X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=ab0fd193e3e789086a921275b79f2c77253fe415;hb=208368fcc1c61319fa2728d950688523b0557b1f;hp=0ce8bb8c7bf8daecaf2ebcfcc9724523e6b5f685;hpb=49817ce46db30027ed3ca7bc669904c55b9337c8;p=apps%2Fagl-service-windowmanager.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0ce8bb8..ab0fd19 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -66,7 +66,7 @@ target_link_libraries(${TARGETS_WM} ${AFB_LIBRARIES} ${WLC_LIBRARIES} ${SD_LIBRARIES} - ${PLUGIN_PM} + ${CMAKE_BINARY_DIR}/src/${PLUGIN_PM}/lib${PLUGIN_PM}.so ) target_compile_definitions(${TARGETS_WM} @@ -99,7 +99,7 @@ set_target_properties(${TARGETS_WM} C_STANDARD 99 C_STANDARD_REQUIRED ON - LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/../export.map") + LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/../export.map -Wl,-rpath,'$ORIGIN'") if (LINK_LIBCXX) set_target_properties(${TARGETS_WM}