aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-08-25 17:14:25 +0100
committerJosé Fonseca <jfonseca@vmware.com>2011-08-25 17:14:50 +0100
commit503c0cfef930e1f89a4c80166a4a2a1fc516351d (patch)
tree0b15b738e7e09c394bc0d1dce4da6980c874aa43 /CMakeLists.txt
parent2113c1fa00c800fbf7e5301e76847ee4d2f587f8 (diff)
downloadpiglit-503c0cfef930e1f89a4c80166a4a2a1fc516351d.tar.gz
cmake: Don't define min/max macros on Windows.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aafe8b1b..f3f21f2f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,6 +61,9 @@ endif (NOT MSVC)
if (WIN32)
# MSVC & MinGW only define & use APIENTRY
add_definitions (-DGLAPIENTRY=__stdcall)
+
+ # Don't define min/max macros
+ add_definitions (-DNOMINMAX)
endif (WIN32)
if (APPLE)