]> source.dussan.org Git - rspamd.git/commitdiff
Honor CMAKE_INSTALL_PREFIX.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Aug 2013 14:18:01 +0000 (15:18 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Aug 2013 14:18:01 +0000 (15:18 +0100)
CMakeLists.txt

index 3ca07b0a5ddc497e1918c804843eeec2428bba60..b4bea8495e1cd72b2e17cade3f493bcb99be879b 100644 (file)
@@ -149,7 +149,7 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
                SET(MAN_PREFIX "${CMAKE_INSTALL_PREFIX}/man")
        ENDIF(NOT MAN_PREFIX)
        IF(NOT LOCALSTATES_PREFIX)
-               SET(LOCALSTATES_PREFIX "/var/run/rspamd")
+               SET(LOCALSTATES_PREFIX "${CMAKE_INSTALL_PREFIX}/var/run/rspamd")
        ENDIF(NOT LOCALSTATES_PREFIX)
            SET(PREFIX "${CMAKE_INSTALL_PREFIX}")
        ELSE(CMAKE_INSTALL_PREFIX)
@@ -187,7 +187,7 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
                SET(MAN_PREFIX "${CMAKE_INSTALL_PREFIX}/man")
                ENDIF(NOT MAN_PREFIX)
            IF(NOT LOCALSTATES_PREFIX)
-               SET(LOCALSTATES_PREFIX "/var/run/rspamd")
+               SET(LOCALSTATES_PREFIX "${CMAKE_INSTALL_PREFIX}/var/run/rspamd")
        ENDIF(NOT LOCALSTATES_PREFIX)
            SET(PREFIX "${CMAKE_INSTALL_PREFIX}")
        ELSE(CMAKE_INSTALL_PREFIX)      
@@ -226,7 +226,7 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
                SET(MAN_PREFIX "${CMAKE_INSTALL_PREFIX}/share/man")
            ENDIF(NOT MAN_PREFIX)
            IF(NOT LOCALSTATES_PREFIX)
-               SET(LOCALSTATES_PREFIX "/var/run/rspamd")
+               SET(LOCALSTATES_PREFIX "${CMAKE_INSTALL_PREFIX}/var/run/rspamd")
        ENDIF(NOT LOCALSTATES_PREFIX)
            
            SET(PREFIX "${CMAKE_INSTALL_PREFIX}")
@@ -365,7 +365,7 @@ IF(NOT MAN_PREFIX)
 ENDIF(NOT MAN_PREFIX)
 IF(NOT LOCALSTATES_PREFIX)
        IF(CMAKE_INSTALL_PREFIX)
-               SET(LOCALSTATES_PREFIX "/var/run/rspamd")
+               SET(LOCALSTATES_PREFIX "${CMAKE_INSTALL_PREFIX}/var/run/rspamd")
        ENDIF(CMAKE_INSTALL_PREFIX) 
 ENDIF(NOT LOCALSTATES_PREFIX)