]> source.dussan.org Git - rspamd.git/commitdiff
Another workaround for pcre jit.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 May 2015 14:10:56 +0000 (15:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 May 2015 14:10:56 +0000 (15:10 +0100)
CMakeLists.txt

index cb49c8d2b549aed629e056f28179eceb604fb629..44e6ee154071d952539fa0dcd98681012a9e0ddb 100644 (file)
@@ -489,7 +489,11 @@ IF(GMIME2_VERSION VERSION_GREATER "2.4.0")
     SET(GMIME24 1)
 ENDIF(GMIME2_VERSION VERSION_GREATER "2.4.0")
 LIST(APPEND CMAKE_REQUIRED_INCLUDES "${PCRE_INCLUDE}")
-SET(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES};-L${PCRE_LIBRARY};-lpcre")
+IF(PCRE_LIBRARY)
+       SET(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES};-L${PCRE_LIBRARY};-lpcre")
+ELSE(PCRE_LIBRARY)
+       SET(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES};-lpcre")
+ENDIF(PCRE_LIBRARY)
 # Libhiredis pc file is so special
 FIND_PATH(LIBHIREDIS_INCLUDE hiredis.h 
                HINTS "${RSPAMD_SEARCH_PATH}"