Skip to content

Commit f54b481

Browse files
kmancinifacebook-github-bot
authored andcommitted
add re2 as cmake dependency
Summary: We use Re2 in D22877942 for parsing multiple path prefix data fetch logging, this introduces the dependency for eden's opensource builds. Reviewed By: chadaustin Differential Revision: D23431175 fbshipit-source-id: 44b399e92cb89ba1403295ecd10bc8f8d769b02c
1 parent 8ee2771 commit f54b481

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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()

build/fbcode_builder/manifests/eden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ fbthrift
1717
fb303
1818
cpptoml
1919
rocksdb
20+
re2
2021
libgit2
2122
lz4
2223
pexpect

0 commit comments

Comments
 (0)