From 92f2900e45a9354a645e3ec456dcf7387103e090 Mon Sep 17 00:00:00 2001 From: Projjal Chanda Date: Sun, 19 Jan 2020 14:41:59 +0530 Subject: [PATCH] Disabled default build of compression libraries and glog support --- cpp/cmake_modules/DefineOptions.cmake | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/cpp/cmake_modules/DefineOptions.cmake b/cpp/cmake_modules/DefineOptions.cmake index bc7528a3387f6..a7f7c1798e4bf 100644 --- a/cpp/cmake_modules/DefineOptions.cmake +++ b/cpp/cmake_modules/DefineOptions.cmake @@ -231,25 +231,14 @@ Deprecated. Use BOOST_SOURCE=BUNDLED instead." OFF) define_option(ARROW_WITH_BACKTRACE "Build with backtrace support" ON) define_option(ARROW_USE_GLOG "Build libraries with glog support for pluggable logging" - ON) - - define_option(ARROW_WITH_BROTLI "Build with Brotli compression" ON) + OFF) + define_option(ARROW_WITH_BROTLI "Build with Brotli compression" OFF) define_option(ARROW_WITH_BZ2 "Build with BZ2 compression" OFF) - - define_option(ARROW_WITH_LZ4 "Build with lz4 compression" ON) - - define_option(ARROW_WITH_SNAPPY "Build with Snappy compression" ON) - - define_option(ARROW_WITH_ZLIB "Build with zlib compression" ON) - - if(CMAKE_VERSION VERSION_LESS 3.7) - set(ARROW_WITH_ZSTD_DEFAULT OFF) - else() - # ExternalProject_Add(SOURCE_SUBDIR) is available since CMake 3.7. - set(ARROW_WITH_ZSTD_DEFAULT ON) - endif() - define_option(ARROW_WITH_ZSTD "Build with zstd compression" ${ARROW_WITH_ZSTD_DEFAULT}) + define_option(ARROW_WITH_LZ4 "Build with lz4 compression" OFF) + define_option(ARROW_WITH_SNAPPY "Build with Snappy compression" OFF) + define_option(ARROW_WITH_ZLIB "Build with zlib compression" OFF) + define_option(ARROW_WITH_ZSTD "Build with zstd compression" OFF) #---------------------------------------------------------------------- if(MSVC)