try to find pcre.h for HAVE_RULES in any case (#3185)
This commit is contained in:
parent
9de976b243
commit
5c102a0b8a
|
@ -7,9 +7,12 @@ if (BUILD_GUI)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (HAVE_RULES)
|
if (HAVE_RULES)
|
||||||
|
find_path(PCRE_INCLUDE pcre.h)
|
||||||
find_library(PCRE_LIBRARY pcre)
|
find_library(PCRE_LIBRARY pcre)
|
||||||
if (NOT PCRE_LIBRARY)
|
if (NOT PCRE_LIBRARY OR NOT PCRE_INCLUDE)
|
||||||
message(FATAL_ERROR "pcre dependency for RULES has not been found")
|
message(FATAL_ERROR "pcre dependency for RULES has not been found")
|
||||||
|
else()
|
||||||
|
include_directories(${PCRE_INCLUDE})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue