This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 2f5dc41b1d GH-49834: [C++] Avoid building re2 unit tests (#50152)
2f5dc41b1d is described below

commit 2f5dc41b1d48508456d41887d2a390ef03324609
Author: Antoine Pitrou <[email protected]>
AuthorDate: Thu Jun 11 02:59:07 2026 +0200

    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 <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 cpp/cmake_modules/ThirdpartyToolchain.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake 
b/cpp/cmake_modules/ThirdpartyToolchain.cmake
index 9a03030115..41a38c8a2e 100644
--- a/cpp/cmake_modules/ThirdpartyToolchain.cmake
+++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake
@@ -3064,6 +3064,7 @@ function(build_re2)
 
   # Unity build causes some build errors
   set(CMAKE_UNITY_BUILD OFF)
+  set(RE2_BUILD_TESTING OFF)
 
   fetchcontent_makeavailable(re2)
 

Reply via email to