We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3461fab commit eb1a3deCopy full SHA for eb1a3de
cpp/cmake_modules/ThirdpartyToolchain.cmake
@@ -1910,7 +1910,10 @@ function(build_protobuf)
1910
1911
set(protobuf_BUILD_TESTS OFF)
1912
# Always build protobuf as static library to avoid DLL import/export issues
1913
- set(protobuf_BUILD_SHARED_LIBS OFF)
+ # Must be CACHE FORCE to override the option() in protobuf's CMakeLists.txt
1914
+ set(protobuf_BUILD_SHARED_LIBS
1915
+ OFF
1916
+ CACHE BOOL "Build protobuf shared libs" FORCE)
1917
if(MSVC AND NOT ARROW_USE_STATIC_CRT)
1918
set(protobuf_MSVC_STATIC_RUNTIME OFF)
1919
endif()
0 commit comments