Skip to content

Commit 26ed68d

Browse files
committed
fix "cmake -DWITH_PCRE=bundled"
after building with system
1 parent 8d75a75 commit 26ed68d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/pcre.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ MACRO (CHECK_PCRE)
55
IF(WITH_PCRE STREQUAL "system" OR WITH_PCRE STREQUAL "auto")
66
CHECK_LIBRARY_EXISTS(pcre pcre_stack_guard "" HAVE_PCRE)
77
ENDIF()
8-
IF(NOT HAVE_PCRE)
8+
IF(NOT HAVE_PCRE OR WITH_PCRE STREQUAL "bundled")
99
IF (WITH_PCRE STREQUAL "system")
1010
MESSAGE(FATAL_ERROR "system pcre is not found or unusable")
1111
ENDIF()

0 commit comments

Comments
 (0)