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:
anonymissimus 2013-06-24 19:02:22 +02:00
parent 6c30a45a44
commit 8a6df90ab9

View File

@ -44,6 +44,7 @@ endif(NOT MSVC)
if(MSVC) if(MSVC)
add_definitions(-D_SCL_SECURE_NO_WARNINGS) add_definitions(-D_SCL_SECURE_NO_WARNINGS)
add_definitions(-D_CRT_SECURE_NO_WARNINGS) add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-DNOMINMAX)
endif(MSVC) endif(MSVC)
#check for some compiler/arch specific things and export defines accordingly... #check for some compiler/arch specific things and export defines accordingly...