]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Skip setting RPATH for static builds 741/head
authorAndrew Lewis <nerf@judo.za.org>
Fri, 22 Jul 2016 12:51:04 +0000 (13:51 +0100)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 22 Jul 2016 12:51:04 +0000 (13:51 +0100)
CMakeLists.txt

index 9288e7ae4024f893347746ebd8ebf370bd541c9d..fd5a51916cd7ea4c6408376bb0681290de0f5325 100644 (file)
@@ -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)