Skip to content

Commit 8fac412

Browse files
committed
New^5 attempt to fix Windows builds
1 parent c22929c commit 8fac412

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4004,6 +4004,12 @@ function(build_orc)
40044004

40054005
set(ORC_PREFER_STATIC_PROTOBUF OFF)
40064006
if(MSVC AND PROTOBUF_VENDORED)
4007+
set(CMAKE_CXX_FLAGS
4008+
"${CMAKE_CXX_FLAGS} /DPROTOBUF_STATIC_LIB"
4009+
CACHE STRING "" FORCE)
4010+
set(CMAKE_C_FLAGS
4011+
"${CMAKE_C_FLAGS} /DPROTOBUF_STATIC_LIB"
4012+
CACHE STRING "" FORCE)
40074013
add_compile_definitions(PROTOBUF_STATIC_LIB)
40084014
endif()
40094015
get_target_property(PROTOBUF_INCLUDE_DIR ${ARROW_PROTOBUF_LIBPROTOBUF}

0 commit comments

Comments
 (0)