Skip to content

Commit 2f5dc41

Browse files
authored
GH-49834: [C++] Avoid building re2 unit tests (#50152)
### Rationale for this change We don't need to build unit tests for the bundled RE2 library, and it avoids `ctest` picking those tests when run from the build directory. ### Are these changes tested? Manually. ### Are there any user-facing changes? No. * GitHub Issue: #49834 Authored-by: Antoine Pitrou <antoine@python.org> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
1 parent ee0d861 commit 2f5dc41

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,6 +3064,7 @@ function(build_re2)
30643064

30653065
# Unity build causes some build errors
30663066
set(CMAKE_UNITY_BUILD OFF)
3067+
set(RE2_BUILD_TESTING OFF)
30673068

30683069
fetchcontent_makeavailable(re2)
30693070

0 commit comments

Comments
 (0)