Skip to content

Commit cc4b344

Browse files
committed
Try to fix min/max macro redefinition too
1 parent a7af472 commit cc4b344

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpp/src/arrow/flight/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ endforeach()
235235
if(CMAKE_UNITY_BUILD AND WIN32)
236236
foreach(LIB_TARGET ${ARROW_FLIGHT_LIBRARIES})
237237
target_compile_options(${LIB_TARGET}
238-
PRIVATE "$<$<CXX_COMPILER_ID:MSVC>:/FI\"winsock2.h\">"
238+
PRIVATE "$<$<CXX_COMPILER_ID:MSVC>:/DNOMINMAX>"
239+
"$<$<CXX_COMPILER_ID:MSVC>:/DWIN32_LEAN_AND_MEAN>"
240+
"$<$<CXX_COMPILER_ID:MSVC>:/FI\"winsock2.h\">"
239241
"$<$<CXX_COMPILER_ID:MSVC>:/FI\"ws2tcpip.h\">")
240242
endforeach()
241243
endif()

0 commit comments

Comments
 (0)