| 1 |
# Copyright (c) Facebook, Inc. and its affiliates. |
| 2 |
# |
| 3 |
# This software may be used and distributed according to the terms of the |
| 4 |
# GNU General Public License version 2. |
| 5 |
|
| 6 |
find_library(RE2_LIBRARY re2) |
| 7 |
mark_as_advanced(RE2_LIBRARY) |
| 8 |
|
| 9 |
find_path(RE2_INCLUDE_DIR NAMES re2/re2.h) |
| 10 |
mark_as_advanced(RE2_INCLUDE_DIR) |
| 11 |
|
| 12 |
include(FindPackageHandleStandardArgs) |
| 13 |
FIND_PACKAGE_HANDLE_STANDARD_ARGS( |
| 14 |
RE2 |
| 15 |
REQUIRED_VARS RE2_LIBRARY RE2_INCLUDE_DIR) |
| 16 |
|
| 17 |
if(RE2_FOUND) |
| 18 |
set(RE2_LIBRARY ${RE2_LIBRARY}) |
| 19 |
set(RE2_INCLUDE_DIR, ${RE2_INCLUDE_DIR}) |
| 20 |
endif() |