CMakeLists: /DNOMINMAX for MSVC

This commit is contained in:
MerryMage 2016-08-25 17:37:35 +01:00
parent 30df51c2dc
commit 1f329b2fbf

View file

@ -19,6 +19,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
# Compiler flags # Compiler flags
if (MSVC) if (MSVC)
add_compile_options(/W3 /MP /Zi /Zo /EHsc /WX) add_compile_options(/W3 /MP /Zi /Zo /EHsc /WX)
add_compile_options(/DNOMINMAX)
else() else()
add_compile_options(-Wall add_compile_options(-Wall
-Werror -Werror