]> source.dussan.org Git - rspamd.git/commitdiff
Try to avoid collision with locally installed includes.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 29 Sep 2015 12:32:47 +0000 (13:32 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 29 Sep 2015 12:32:47 +0000 (13:32 +0100)
CMakeLists.txt

index efe671b64ebcdf10da4895172525c92f6bb2f428..aba09f66898f6c1a9b332afa76b97058ed91f3cb 100644 (file)
@@ -403,7 +403,25 @@ ENDMACRO()
 ############################# CONFIG SECTION #############################################
 # Initial set
 
-INCLUDE_DIRECTORIES(src/libutil src/libserver src/libmime src/libstat src/libcryptobox)
+# Prefer local include dirs to system ones
+INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/src"
+               "${CMAKE_SOURCE_DIR}/src/libutil"
+               "${CMAKE_SOURCE_DIR}/src/libserver"
+               "${CMAKE_SOURCE_DIR}/src/libmime"
+               "${CMAKE_SOURCE_DIR}/src/libstat"
+               "${CMAKE_SOURCE_DIR}/src/libcryptobox"
+               "${CMAKE_SOURCE_DIR}/contrib/libucl"
+               "${CMAKE_SOURCE_DIR}/contrib/uthash"
+               "${CMAKE_SOURCE_DIR}/contrib/http-parser"
+               "${CMAKE_SOURCE_DIR}/contrib/libottery"
+               "${CMAKE_SOURCE_DIR}/contrib/xxhash"
+               "${CMAKE_SOURCE_DIR}/contrib/cdb"
+               "${CMAKE_SOURCE_DIR}/contrib/snowball/include"
+               "${CMAKE_SOURCE_DIR}/contrib/blake2"
+               "${CMAKE_SOURCE_DIR}/contrib/librdns"
+               "${CMAKE_SOURCE_DIR}/contrib/aho-corasick"
+               "${CMAKE_BINARY_DIR}/src" #Stored in the binary dir
+               "${CMAKE_BINARY_DIR}/src/libcryptobox")
 
 IF(CMAKE_INSTALL_PREFIX)
        SET(PREFIX ${CMAKE_INSTALL_PREFIX})
@@ -946,22 +964,7 @@ ELSE(HG)
                ENDIF(HG_ID)
        ENDIF(HG_ARCH)
 ENDIF(HG)
 
-################################ SOURCES SECTION ###########################
-INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/src" 
-                                       "${CMAKE_BINARY_DIR}/src"
-                                       "${CMAKE_BINARY_DIR}/src/libcryptobox"
-                                       "${CMAKE_SOURCE_DIR}/contrib/libucl"
-                                       "${CMAKE_SOURCE_DIR}/contrib/uthash"
-                                       "${CMAKE_SOURCE_DIR}/contrib/http-parser"
-                                       "${CMAKE_SOURCE_DIR}/contrib/libottery"
-                                       "${CMAKE_SOURCE_DIR}/contrib/xxhash"
-                                       "${CMAKE_SOURCE_DIR}/contrib/cdb"
-                                       "${CMAKE_SOURCE_DIR}/contrib/snowball/include"
-                                       "${CMAKE_SOURCE_DIR}/contrib/blake2"
-                                       "${CMAKE_SOURCE_DIR}/contrib/librdns"
-                                       "${CMAKE_SOURCE_DIR}/contrib/aho-corasick")
 
 ################################ SUBDIRS SECTION ###########################