Skip to content

Commit

Permalink
try to find pcre.h for HAVE_RULES in any case (danmar#3185)
Browse files Browse the repository at this point in the history
  • Loading branch information
DGarry82 authored Mar 30, 2021
1 parent 9de976b commit 5c102a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/findDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 5c102a0

Please sign in to comment.