Skip to content

Commit c22929c

Browse files
committed
New^4 attempt to fix Windows builds
1 parent 7325ca9 commit c22929c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4003,6 +4003,9 @@ function(build_orc)
40034003
set(LZ4_LIBRARY ${ORC_LZ4_TARGET})
40044004

40054005
set(ORC_PREFER_STATIC_PROTOBUF OFF)
4006+
if(MSVC AND PROTOBUF_VENDORED)
4007+
add_compile_definitions(PROTOBUF_STATIC_LIB)
4008+
endif()
40064009
get_target_property(PROTOBUF_INCLUDE_DIR ${ARROW_PROTOBUF_LIBPROTOBUF}
40074010
INTERFACE_INCLUDE_DIRECTORIES)
40084011
get_filename_component(Protobuf_ROOT "${PROTOBUF_INCLUDE_DIR}" DIRECTORY)

0 commit comments

Comments
 (0)