Skip to content

Commit 5c102a0

Browse files
authored
try to find pcre.h for HAVE_RULES in any case (#3185)
1 parent 9de976b commit 5c102a0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmake/findDependencies.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ if (BUILD_GUI)
77
endif()
88

99
if (HAVE_RULES)
10+
find_path(PCRE_INCLUDE pcre.h)
1011
find_library(PCRE_LIBRARY pcre)
11-
if (NOT PCRE_LIBRARY)
12+
if (NOT PCRE_LIBRARY OR NOT PCRE_INCLUDE)
1213
message(FATAL_ERROR "pcre dependency for RULES has not been found")
14+
else()
15+
include_directories(${PCRE_INCLUDE})
1316
endif()
1417
endif()
1518

0 commit comments

Comments
 (0)