mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Add basic regex functionality to plString
This commit is contained in:
21
cmake/FindPCRE.cmake
Normal file
21
cmake/FindPCRE.cmake
Normal file
@ -0,0 +1,21 @@
|
||||
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()
|
Reference in New Issue
Block a user