pcre: do not explode if pcre is missing

This commit is contained in:
Matthew Barr
2018-01-19 15:20:39 +11:00
committed by Xiang Wang
parent 905a67375a
commit 277ee016a5
2 changed files with 8 additions and 2 deletions

View File

@@ -4,6 +4,10 @@ set(PCRE_REQUIRED_MINOR_VERSION 41)
set(PCRE_REQUIRED_VERSION ${PCRE_REQUIRED_MAJOR_VERSION}.${PCRE_REQUIRED_MINOR_VERSION})
include (${CMAKE_MODULE_PATH}/pcre.cmake)
if (NOT CORRECT_PCRE_VERSION)
message(STATUS "PCRE ${PCRE_REQUIRED_VERSION} not found, not building hscollider")
return()
endif()
include_directories(${PCRE_INCLUDE_DIRS})