This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 5cc6ef05c ORC-1618: Disable building tests for snappy
5cc6ef05c is described below
commit 5cc6ef05cd29e9c34f4c7b8c16d6b9ec88730a3f
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]>
(cherry picked from commit 9627a24439099046078c9f300028b79ab27fe33e)
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}")