5 # Find the native PCRE includes and library
7 # PCRE_INCLUDE_DIRS - where to find pcre.h, etc.
8 # PCRE_LIBRARIES - List of libraries when using pcre.
9 # PCRE_FOUND - True if pcre found.
12 IF (PCRE_INCLUDE_DIRS)
13 # Already in cache, be silent
14 SET(PCRE_FIND_QUIETLY TRUE)
15 ENDIF (PCRE_INCLUDE_DIRS)
17 FIND_PATH(PCRE_INCLUDE_DIR pcre.h)
20 FIND_LIBRARY(PCRE_LIBRARY NAMES ${PCRE_NAMES} )
22 # handle the QUIETLY and REQUIRED arguments and set PCRE_FOUND to TRUE if
23 # all listed variables are TRUE
24 INCLUDE(FindPackageHandleStandardArgs)
25 FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCRE DEFAULT_MSG PCRE_LIBRARY PCRE_INCLUDE_DIR)
28 SET( PCRE_LIBRARIES ${PCRE_LIBRARY} )
29 SET( PCRE_INCLUDE_DIRS ${PCRE_INCLUDE_DIR} )
32 SET( PCRE_INCLUDE_DIRS )
35 MARK_AS_ADVANCED( PCRE_LIBRARIES PCRE_INCLUDE_DIRS )