Port signature help test to new LSP test framework
[hiphop-php.git] / CMake / FindRE2.cmake
blob1ccb89d13c56a2609deeaa06b67c4c062d9e9fef
1 FIND_PATH(SYSTEM_RE2_INCLUDE_DIR re2/re2.h)
2 IF (SYSTEM_RE2_INCLUDE_DIR)
3   MESSAGE(STATUS "Found RE2 include dir")
4   FIND_LIBRARY(SYSTEM_RE2_LIBRARY re2)
5   IF (SYSTEM_RE2_LIBRARY)
6     MESSAGE(STATUS "Found RE2 library")
7     SET(RE2_INCLUDE_DIR ${SYSTEM_RE2_INCLUDE_DIR})
8     SET(RE2_LIBRARY ${SYSTEM_RE2_LIBRARY})
9   ELSE ()
10     MESSAGE(FATAL_ERROR "Found RE2 headers, but not the library")
11   ENDIF ()
12 ELSE ()
13   MESSAGE(STATUS "Did not find system RE2")
14 ENDIF ()