summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-05-06 10:19:12 +0100
committerJosé Fonseca <jfonseca@vmware.com>2014-05-06 10:19:12 +0100
commitb695b1fd0be28206bbf7cea3185250cd2127ea84 (patch)
treeee21d23a05c248285d2d99fb786204b48f0f3be8
parent9c326a34e088971a3c11b2e5289cd1a8e4d439df (diff)
downloadmesa-demos-b695b1fd0be28206bbf7cea3185250cd2127ea84.zip
mesa-demos-b695b1fd0be28206bbf7cea3185250cd2127ea84.tar.xz
cmake: Silence warnings about deprecated GLUT functions on MacOSX.
Too many warnings, and GLUT is not something we can easily replace.
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2402d1f..0197439 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -137,6 +137,12 @@ if (MINGW)
endif ()
endif ()
+if (APPLE)
+ # Silence deprecated function warnings (we rely on GLUT which is now
+ # declared as deprecated)
+ add_definitions (-Wno-deprecated-declarations)
+endif ()
+
add_definitions(-DDEMOS_DATA_DIR=\"../data/\")
if (BUILD_SHARED_LIBS AND NOT DEFINED LIBDIR)