Demos (master): cmake: Don't define min/max macros on Windows.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Thu Jun 2 16:54:44 UTC 2011
Module: Demos
Branch: master
Commit: 6cbc3c838e18c5eb09e0d859e9e398396d4775e9
URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=6cbc3c838e18c5eb09e0d859e9e398396d4775e9
Author: José Fonseca <jfonseca at vmware.com>
Date: Thu Jun 2 17:36:50 2011 +0100
cmake: Don't define min/max macros on Windows.
---
CMakeLists.txt | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ccc5680..4404bc6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,6 +37,9 @@ if (WIN32)
add_definitions (--include windows.h)
endif (MSVC)
+ # Don't define min/max macros
+ add_definitions (-DNOMINMAX)
+
# MSVC & MinGW only define & use APIENTRY
add_definitions (-DGLAPIENTRY=__stdcall)
More information about the mesa-commit
mailing list