Fetch RE2 in CMakeLists.txt (#4)

tcmalloc_profile_marshaler_test and profile_builder_test link against
re2::re2. Without FetchContent for RE2, CMake builds fail when RE2 is
not installed on the system.
PiperOrigin-RevId: 984090161
This commit is contained in:
Chris Kennelly authored and Copybara-Service committed 2026-09-18 15:09:31 -07:00
1 parent 2dd2ae04f9
commit 4028caabc0
1 file changed
+8
+8
View File
@@ -62,6 +62,14 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(protobuf)
FetchContent_Declare(
re2
GIT_REPOSITORY https://github.com/google/re2.git
GIT_TAG main
FIND_PACKAGE_ARGS NAMES re2
)
FetchContent_MakeAvailable(re2)
FetchContent_Declare(
benchmark
GIT_REPOSITORY https://github.com/google/benchmark.git