summaryrefslogtreecommitdiff
path: root/cmake/pcre.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-04-18 16:28:14 +0200
committerSergei Golubchik <serg@mariadb.org>2017-04-21 18:34:30 +0200
commit26ed68dcaed5f5ca27fce21e7a7512e0523b2605 (patch)
treefab2346065635629d1160adb0dd17756c1a18f43 /cmake/pcre.cmake
parent8d75a7533ee80efa5275a058dfadf8947e5857a6 (diff)
downloadmariadb-git-26ed68dcaed5f5ca27fce21e7a7512e0523b2605.tar.gz
fix "cmake -DWITH_PCRE=bundled"
after building with system
Diffstat (limited to 'cmake/pcre.cmake')
-rw-r--r--cmake/pcre.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/pcre.cmake b/cmake/pcre.cmake
index 45d9bc01ddb..894bde38974 100644
--- a/cmake/pcre.cmake
+++ b/cmake/pcre.cmake
@@ -5,7 +5,7 @@ MACRO (CHECK_PCRE)
IF(WITH_PCRE STREQUAL "system" OR WITH_PCRE STREQUAL "auto")
CHECK_LIBRARY_EXISTS(pcre pcre_stack_guard "" HAVE_PCRE)
ENDIF()
- IF(NOT HAVE_PCRE)
+ IF(NOT HAVE_PCRE OR WITH_PCRE STREQUAL "bundled")
IF (WITH_PCRE STREQUAL "system")
MESSAGE(FATAL_ERROR "system pcre is not found or unusable")
ENDIF()