CMakeLists: /DNOMINMAX for MSVC
This commit is contained in:
parent
30df51c2dc
commit
1f329b2fbf
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue