diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-05-06 10:19:12 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-05-06 10:19:12 +0100 |
commit | b695b1fd0be28206bbf7cea3185250cd2127ea84 (patch) | |
tree | ee21d23a05c248285d2d99fb786204b48f0f3be8 | |
parent | 9c326a34e088971a3c11b2e5289cd1a8e4d439df (diff) |
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.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2402d1f7..01974392 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) |