diff options
author | Andrew Lewis <nerf@judo.za.org> | 2015-04-24 22:21:39 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2015-04-24 22:21:39 +0200 |
commit | 549402f683d494c10f9fd23bac4f2a6f4949e538 (patch) | |
tree | 9b539aaa46d9a1746db756d79ad73c52ed811cfb /CMakeLists.txt | |
parent | a7de8c10d877c7e65853b7992cf247418f20f11c (diff) | |
download | rspamd-549402f683d494c10f9fd23bac4f2a6f4949e538.tar.gz rspamd-549402f683d494c10f9fd23bac4f2a6f4949e538.zip |
Try fix RPATH
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b07fd47d4..673396e56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,10 +91,12 @@ ENDIF(NOT WWWDIR) # Set libdir IF(NOT LIBDIR) - SET(LIBDIR lib/rspamd) + SET(RSPAMD_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib/rspamd") +ELSE(NOT LIBDIR) + SET(RSPAMD_LIBDIR "${LIBDIR}/rspamd") ENDIF(NOT LIBDIR) -SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIBDIR}") +SET(CMAKE_INSTALL_RPATH "${RSPAMD_LIBDIR}") # Set includedir IF(NOT INCLUDEDIR) @@ -404,7 +406,7 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "SunOS") LIST(APPEND CMAKE_REQUIRED_LIBRARIES crypto) SET(CMAKE_VERBOSE_MAKEFILE ON) SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE) - SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib:${CMAKE_INSTALL_PREFIX}/${LIBDIR}") + SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib:${CMAKE_INSTALL_PREFIX}/${LIBDIR}:${RSPAMD_LIBDIR}") ENDIF(CMAKE_SYSTEM_NAME STREQUAL "SunOS") # Now find libraries and headers |