Commit ce31b402 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

[CMake] Use NOMINMAX compilation flag on Windows.

parent 2720c6a8
Pipeline #16531 passed with stage
in 17 minutes and 14 seconds
......@@ -15,5 +15,9 @@ if(CMAKE_VERSION VERSION_GREATER 3.11)
message(STATUS "CXX_STANDARD for cpp2pybind11 set changed from ${CMAKE_CXX_STANDARD} to 14")
set_target_properties(cpp2pybind11 PROPERTIES CXX_STANDARD 14)
endif()
if(WIN32)
target_compile_definitions(cpp2pybind11 PRIVATE -DNOMINMAX)
endif(WIN32)
endif()
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment