From: Andrew Lewis Date: Fri, 22 Jul 2016 12:51:04 +0000 (+0100) Subject: [Fix] Skip setting RPATH for static builds X-Git-Tag: 1.3.0~13^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=72fbc5e84925bfc175d1ee3eab4bad48c3809ac3;p=rspamd.git [Fix] Skip setting RPATH for static builds --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 9288e7ae4..fd5a51916 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,6 +160,7 @@ SET(RSPAMD_DEFAULT_LIBRARY_PATHS "/usr/local;/usr/pkg;/usr;/Library/Frameworks;/ IF(ENABLE_STATIC MATCHES "ON") MESSAGE(STATUS "Static build of rspamd implies that the target binary will be *GPL* licensed") SET(GPL_RSPAMD_BINARY 1) + SET(CMAKE_SKIP_INSTALL_RPATH ON) SET(BUILD_STATIC 1) SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a") SET(BUILD_SHARED_LIBRARIES OFF)