diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-11 15:10:56 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-11 15:10:56 +0100 |
commit | 48c605c605beec037574a7e28dab0f1438a0c51a (patch) | |
tree | 5421f9a52b6831c25bec97f619a0d488922e4d9e | |
parent | 93317a1d04bd0cb840c811b98ae224cedbf5cbf3 (diff) | |
download | rspamd-48c605c605beec037574a7e28dab0f1438a0c51a.tar.gz rspamd-48c605c605beec037574a7e28dab0f1438a0c51a.zip |
Another workaround for pcre jit.
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cb49c8d2b..44e6ee154 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}" |