File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ cmake ^
7171 -DARROW_BUILD_TESTS=OFF ^
7272 -DARROW_COMPUTE=ON ^
7373 -DARROW_CSV=ON ^
74- -DARROW_CXXFLAGS=" /MP /DNOMINMAX /FI\ " winsock2.h\ " /FI\ " ws2tcpip.h\ " " ^
74+ -DARROW_CXXFLAGS=" /MP" ^
7575 -DARROW_DATASET=%ARROW_DATASET% ^
7676 -DARROW_DEPENDENCY_SOURCE=VCPKG ^
7777 -DARROW_DEPENDENCY_USE_SHARED=OFF ^
Original file line number Diff line number Diff line change @@ -231,6 +231,15 @@ foreach(LIB_TARGET ${ARROW_FLIGHT_LIBRARIES})
231231 target_compile_definitions (${LIB_TARGET} PRIVATE ARROW_FLIGHT_EXPORTING)
232232endforeach ()
233233
234+ # Handle Unity build header conflicts on Windows
235+ if (CMAKE_UNITY_BUILD AND WIN32 )
236+ foreach (LIB_TARGET ${ARROW_FLIGHT_LIBRARIES} )
237+ target_compile_options (${LIB_TARGET}
238+ PRIVATE "$<$<CXX_COMPILER_ID:MSVC>:/FI\" winsock2.h\" >"
239+ "$<$<CXX_COMPILER_ID:MSVC>:/FI\" ws2tcpip.h\" >" )
240+ endforeach ()
241+ endif ()
242+
234243# Define arrow_flight_testing library
235244if (ARROW_TESTING)
236245 if (ARROW_BUILD_SHARED AND ARROW_BUILD_STATIC)
You can’t perform that action at this time.
0 commit comments