summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/Misc.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/Misc.cmake b/cmake/Misc.cmake
index 9dd2609..fcb2464 100644
--- a/cmake/Misc.cmake
+++ b/cmake/Misc.cmake
@@ -32,9 +32,10 @@ endif()
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE CACHE BOOLEAN "Use link paths for shared library rpath")
set(CMAKE_MACOSX_RPATH TRUE)
-list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES ${CMAKE_INSTALL_PREFIX}/lib __is_systtem_dir)
+list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
+ ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} __is_systtem_dir)
if(${__is_systtem_dir} STREQUAL -1)
- set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
+ set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
endif()
# ---[ Funny target