Skip to content

Apache DataFusion SQL Query Engine

ARROW-4599: [C++] Add support for system GFlags

Kouhei Sutou7485025b8338
diff --git a/ci/appveyor-cpp-build.bat b/ci/appveyor-cpp-build.bat
index 21ee6a5589..fa310a3b82 100644
--- a/ci/appveyor-cpp-build.bat
+++ b/ci/appveyor-cpp-build.bat
@@ -44,6 +44,7 @@ if "%JOB%" == "Static_Crt_Build" (
cmake --build . --config Debug || exit /B
ctest --output-on-failure -j2 || exit /B
popd
+ rmdir /S /Q cpp\build-debug
mkdir cpp\build-release
pushd cpp\build-release
diff --git a/ci/travis_before_script_cpp.sh b/ci/travis_before_script_cpp.sh
index c7c3912950..2ed2f62411 100755
--- a/ci/travis_before_script_cpp.sh
+++ b/ci/travis_before_script_cpp.sh
@@ -53,7 +53,8 @@ CMAKE_COMMON_FLAGS="\
-DARROW_NO_DEPRECATED_API=ON \
-DARROW_EXTRA_ERROR_CONTEXT=ON"
CMAKE_LINUX_FLAGS=""
-CMAKE_OSX_FLAGS=""
+CMAKE_OSX_FLAGS="\
+-DARROW_GFLAGS_USE_SHARED=OFF"
if [ "$ARROW_TRAVIS_USE_TOOLCHAIN" == "1" ]; then
CMAKE_COMMON_FLAGS="${CMAKE_COMMON_FLAGS} -DARROW_JEMALLOC=ON"
diff --git a/run-cmake-format.py b/run-cmake-format.py
index ea356a94bb..1dfff5c2be 100755
--- a/run-cmake-format.py
+++ b/run-cmake-format.py
@@ -25,6 +25,7 @@ import sys
patterns = [
'cpp/CMakeLists.txt',
+ 'cpp/cmake_modules/FindGFlags.cmake',
'cpp/src/**/CMakeLists.txt',
'cpp/tools/**/CMakeLists.txt',
'java/gandiva/CMakeLists.txt',