diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b863de29..72d8c2ba4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -483,6 +483,9 @@ ENDIF() IF ((OPENGL_PROFILE STREQUAL "GL3") OR (OPENGL_PROFILE STREQUAL "GLCORE")) OPTION(OSG_GL3_AVAILABLE "Set to OFF to disable use of OpenGL 3.x functions library." ON ) + if(APPLE) + add_definitions(-DGL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED) + endif() ELSE() OPTION(OSG_GL3_AVAILABLE "Set to OFF to disable use of OpenGL 3.x functions library." OFF ) ENDIF()