]> source.dussan.org Git - rspamd.git/commitdiff
Fix build with custom pcre
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Jan 2016 17:11:52 +0000 (17:11 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Jan 2016 17:11:52 +0000 (17:11 +0000)
CMakeLists.txt

index b2c697dc117dd13f687252c66acb7815ab373e13..f30d0eeb575c20337d7656bba0a8ff5d4b27ec72 100644 (file)
@@ -661,11 +661,11 @@ IF(GMIME2_VERSION VERSION_GREATER "2.4.0" OR NOT GMIME2_VERSION)
 ENDIF()
 
 LIST(APPEND CMAKE_REQUIRED_INCLUDES "${PCRE_INCLUDE}")
-IF(PCRE_LIBRARY)
-       SET(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES};-L${PCRE_LIBRARY};-lpcre")
-ELSE(PCRE_LIBRARY)
+IF(PCRE_LIBRARY_PATH)
+       SET(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES};-L${PCRE_LIBRARY_PATH};-lpcre")
+ELSE(PCRE_LIBRARY_PATH)
        SET(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES};-lpcre")
-ENDIF(PCRE_LIBRARY)
+ENDIF(PCRE_LIBRARY_PATH)
 
 IF(ENABLE_HIREDIS MATCHES "ON")
        ADD_SUBDIRECTORY(contrib/hiredis)