Add no proxy information for FB internal access (FacebookPHPSDK)
[hiphop-php.git] / CMake / FindPCRE.cmake
blob125235609ec02ac60e7cb3acf8aa30b6dde29124
2 # $Id$
4 # - Find pcre
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)
19 SET(PCRE_NAMES pcre)
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)
27 IF(PCRE_FOUND)
28   SET( PCRE_LIBRARIES ${PCRE_LIBRARY} )
29   SET( PCRE_INCLUDE_DIRS ${PCRE_INCLUDE_DIR} )
30 ELSE(PCRE_FOUND)
31   SET( PCRE_LIBRARIES )
32   SET( PCRE_INCLUDE_DIRS )
33 ENDIF(PCRE_FOUND)
35 MARK_AS_ADVANCED( PCRE_LIBRARIES PCRE_INCLUDE_DIRS )