diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindRE2.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/FindRE2.cmake b/cmake/FindRE2.cmake new file mode 100644 index 00000000000..af1ff799bd7 --- /dev/null +++ b/cmake/FindRE2.cmake @@ -0,0 +1,19 @@ +# Copyright Verizon Media. 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 +) + |