From 3af4e1c5b09c0ec341d31d5e2151423098fdf1a2 Mon Sep 17 00:00:00 2001 From: EvilSpirit Date: Tue, 26 Jan 2016 12:18:56 +0600 Subject: [PATCH] Define NOMINMAX for Windows builds. Without #define NOMINMAX, defines min and max as macros, which shadows the definitions from and makes them unusable with multiple arguments. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d4ef9a..6f084e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,7 @@ if(WIN32) -DWIN32=1 -DWIN32_LEAN_AND_MEAN=1 -DUNICODE + -DNOMINMAX -D_UNICODE) endif()