diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 60e2b1d..bd19e4a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -112,6 +112,7 @@ if(WIN32) if(MSVC) # MSVC Specifics # Surpress some useless warnings add_definitions ( /D "_CRT_SECURE_NO_DEPRECATE" /W1 ) + add_definitions (-DNOMINMAX) else() # Probably MinGW = GCC set(PLATFORM_LIBS ws2_32.lib) endif()