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

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


The following commit(s) were added to refs/heads/main by this push:
     new 9627a2443 ORC-1618: Disable building tests for snappy
9627a2443 is described below

commit 9627a24439099046078c9f300028b79ab27fe33e
Author: David Douard <[email protected]>
AuthorDate: Wed Feb 14 08:40:58 2024 -0800

    ORC-1618: Disable building tests for snappy
    
    Disabling the building of tests is a workaround for issue #1791 and is 
probably not an issue since snappy tests are not executed as part of the build 
process of orc c++ libs.
    
    Note that snappy 1.1.9 and 1.1.10 cannot be used as is because source 
assets on snappy's gh page are not buildable out of the box, so stick to 1.1.8 
for now.
    
    ### What changes were proposed in this pull request?
    Disable  building snappy tests as a workaround for issue #1791.
    
    ### Why are the changes needed?
    compilation broken in some situations otherwise (see issue)
    
    ### How was this patch tested?
    compile & unit tests
    
    ### Was this patch authored or co-authored using generative AI tooling?
    no
    
    Closes #1792 from douardda/fix-snappy.
    
    Authored-by: David Douard <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 cmake_modules/ThirdpartyToolchain.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake_modules/ThirdpartyToolchain.cmake 
b/cmake_modules/ThirdpartyToolchain.cmake
index 91530a06b..726a2cb92 100644
--- a/cmake_modules/ThirdpartyToolchain.cmake
+++ b/cmake_modules/ThirdpartyToolchain.cmake
@@ -99,7 +99,7 @@ else ()
 
   ExternalProject_Add (snappy_ep
     URL "https://github.com/google/snappy/archive/${SNAPPY_VERSION}.tar.gz";
-    CMAKE_ARGS ${SNAPPY_CMAKE_ARGS}
+    CMAKE_ARGS ${SNAPPY_CMAKE_ARGS} -DSNAPPY_BUILD_TESTS=OFF
     ${THIRDPARTY_LOG_OPTIONS}
     BUILD_BYPRODUCTS "${SNAPPY_STATIC_LIB}")
 

Reply via email to