aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-26 17:11:52 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-26 17:11:52 +0000
commit9285e9f52ee4090b449ded16f4848dd76919ff2b (patch)
treeae5f8cec0f0f717ca76d2c2599464730cf067b5a /CMakeLists.txt
parent919f0ddf61171126795b4ae45b30970e03359b03 (diff)
downloadrspamd-9285e9f52ee4090b449ded16f4848dd76919ff2b.tar.gz
rspamd-9285e9f52ee4090b449ded16f4848dd76919ff2b.zip
Fix build with custom pcre
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b2c697dc1..f30d0eeb5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)