From ae467fee25f46e375c091ca60f6364e62e98ea1d Mon Sep 17 00:00:00 2001 From: nihui Date: Sun, 15 Jul 2018 22:30:56 +0800 Subject: [PATCH] project-wide NOMINMAX on msvc --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b27194a37..d3fa9468a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,7 @@ endif() if(WIN32) add_definitions(-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE) + add_definitions(-DNOMINMAX) else() add_definitions(-Wall -Wextra -Wno-unused-function)