mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 04:19:11 +00:00
cmake/MSVC: add define NOMINMAX
Not setting this can cause compiler errors when using std::max or std::min, as the windows header defines macros with these names otherwise. The standalone project file was doing it that is why I didn't get said errors there.
This commit is contained in:
parent
6c30a45a44
commit
8a6df90ab9
@ -44,6 +44,7 @@ endif(NOT MSVC)
|
||||
if(MSVC)
|
||||
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
add_definitions(-DNOMINMAX)
|
||||
endif(MSVC)
|
||||
|
||||
#check for some compiler/arch specific things and export defines accordingly...
|
||||
|
Loading…
x
Reference in New Issue
Block a user