Skip to content

Commit

Permalink
Don't use vendored GFlags when GFLAGS_HOME is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
kou authored and wesm committed Feb 19, 2019
1 parent ca0f67c commit 0f43fc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,8 @@ if(ARROW_NEED_GFLAGS)
else()
set(GFLAGS_LIBRARY gflags_static)
endif()
elseif(GFLAGS_HOME)
message(FATAL_ERROR "No static or shared library provided for gflags: ${GFLAGS_HOME}")
else()
set(GFLAGS_VENDORED TRUE)
set(GFLAGS_CMAKE_CXX_FLAGS ${EP_CXX_FLAGS})
Expand Down

0 comments on commit 0f43fc9

Please sign in to comment.