aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/FindRE2.cmake
blob: b3643e667213a86694426fdd25c65697fe48327f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

# There is no bundled FindRE2, so we supply our own minimal version to find
# the system RE2 library and header files.

find_path(RE2_INCLUDE_DIR
    NAMES re2/re2.h
)

find_library(RE2_LIBRARIES
    NAMES re2
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(RE2
    FOUND_VAR RE2_FOUND
    REQUIRED_VARS RE2_LIBRARIES RE2_INCLUDE_DIR
)