try to find pcre.h for HAVE_RULES in any case (#3185)

This commit is contained in:
DGarry82 2021-03-30 14:37:26 +03:00 committed by GitHub
parent 9de976b243
commit 5c102a0b8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -7,9 +7,12 @@ if (BUILD_GUI)
endif()
if (HAVE_RULES)
find_path(PCRE_INCLUDE pcre.h)
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")
else()
include_directories(${PCRE_INCLUDE})
endif()
endif()