aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-10-03 15:09:52 +0100
committerJosé Fonseca <jfonseca@vmware.com>2011-10-03 15:09:52 +0100
commit96675f8f2d94113693df4de8d2006a8cd1d0e58b (patch)
treecfceee1fe5973ddeaafa5ce1b21ab55c509a8e87 /CMakeLists.txt
parentabc07c78769a635d580d0aea68049d93f72c12fc (diff)
downloadpiglit-96675f8f2d94113693df4de8d2006a8cd1d0e58b.tar.gz
Define _USE_MATH_DEFINES globally on MSVC.
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 ae2ca08e..5a97486b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,6 +64,9 @@ if (WIN32)
# Don't define min/max macros
add_definitions (-DNOMINMAX)
+
+ # Define M_PI and others
+ add_definitions (-D_USE_MATH_DEFINES)
endif (WIN32)
if (APPLE)