Module: Demos
Branch: master
Commit: 6cbc3c838e18c5eb09e0d859e9e398396d4775e9
URL:    
http://cgit.freedesktop.org/mesa/demos/commit/?id=6cbc3c838e18c5eb09e0d859e9e398396d4775e9

Author: José Fonseca <[email protected]>
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)
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to