From 9285e9f52ee4090b449ded16f4848dd76919ff2b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 26 Jan 2016 17:11:52 +0000 Subject: [PATCH] Fix build with custom pcre --- CMakeLists.txt | 8 ++++---- 1 file 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) -- 2.39.5