#enable warnings:
ADD_FLAGS(CMAKE_CXX_FLAGS "/W3")
+# Globally disable some legacy min and max macros that cause problems:
+ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "/NOMINMAX")
+
#############################
# #
# For Release target: #
#cmakedefine HAVE_LIBZ
-
/* Disable a bunch of warnings for Microsoft Visual C++. */
#ifdef DEAL_II_MSVC
-
//# pragma warning( disable : 4244 ) /* implied downcasting from double to float */
//# pragma warning( disable : 4267 ) /* implied downcasting from size_t to unsigned int */
//# pragma warning( disable : 4996 ) /* unsafe functions, such as strcat and sprintf */
//# pragma warning( disable : 4700 ) /* uninitialized local variable */
//# pragma warning( disable : 4789 ) /* destination of memory copy is too small */
//# pragma warning( disable : 4808 ) /* case 'value' is not a valid value for switch condition of type 'bool */
-
-/*
- * On Windows systems with MS Visual C/C++, there is a
- * #define for 'max' that collides with std::max. So, if
- * we find that this is indeed the case, #undef it
- */
-# if defined(max)
-# undef max
-# endif
#endif // DEAL_II_MSVC