You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
559 B
21 lines
559 B
if(PCRE_INCLUDE_DIR AND PCRE_LIBRARY) |
|
set(PCRE_FIND_QUIETLY TRUE) |
|
endif() |
|
|
|
find_path(PCRE_INCLUDE_DIR pcre.h) |
|
find_library(PCRE_LIBRARY NAMES pcre) |
|
set(PCRE_LIBRARIES ${PCRE_LIBRARY}) |
|
|
|
if(PCRE_INCLUDE_DIR AND PCRE_LIBRARY) |
|
set(PCRE_FOUND TRUE) |
|
endif() |
|
|
|
if(PCRE_FOUND) |
|
if(NOT PCRE_FIND_QUIETLY) |
|
message(STATUS "Found Perl Compatible Regular Expressions library: ${PCRE_INCLUDE_DIR}") |
|
endif() |
|
else() |
|
if(PCRE_FIND_REQUIRED) |
|
message(FATAL_ERROR "Could not find Perl Compatible Regular Expressions library") |
|
endif() |
|
endif()
|
|
|