From 10006758d0b3f53a3a996413b550120bfe4a4feb Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Thu, 23 Jul 2020 15:16:32 +0200 Subject: [PATCH] Fix repeated builds broken by re2's cmake --- cmake/re2.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/re2.cmake b/cmake/re2.cmake index 383d64faa72..3e83aae6910 100644 --- a/cmake/re2.cmake +++ b/cmake/re2.cmake @@ -21,6 +21,9 @@ if(gRPC_RE2_PROVIDER STREQUAL "module") set(RE2_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/re2) endif() if(EXISTS "${RE2_ROOT_DIR}/CMakeLists.txt") + # Explicitly disable BUILD_TESTING to avoid re2's CMakeLists.txt triggering https://github.com/grpc/grpc/issues/23586 + option(BUILD_TESTING "re2.cmake explicitly disabled CTest's BUILD_TESTING option." OFF) + include_directories("${RE2_ROOT_DIR}") add_subdirectory(${RE2_ROOT_DIR} third_party/re2)