Demos (master): cmake: Silence warnings about deprecated GLUT functions on MacOSX.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue May 6 09:19:37 UTC 2014


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue May  6 10:19:12 2014 +0100

cmake: Silence warnings about deprecated GLUT functions on MacOSX.

Too many warnings, and GLUT is not something we can easily replace.

---

 CMakeLists.txt |    6 ++++++
 1 file changed, 6 insertions(+)

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)




More information about the mesa-commit mailing list