From 4db6a9d165f2411f82bd8192321793293f6757cb Mon Sep 17 00:00:00 2001 From: fuzzard Date: Sun, 1 May 2022 15:45:26 +1000 Subject: [macos] silence OPENGL deprecation warnings No need for deprecation warnings. we know opengl is deprecated, its not going to change anything for us having those warnings. --- cmake/platform/osx/osx.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/platform/osx/osx.cmake b/cmake/platform/osx/osx.cmake index 72977de318..cd3a996ded 100644 --- a/cmake/platform/osx/osx.cmake +++ b/cmake/platform/osx/osx.cmake @@ -1,7 +1,8 @@ if(NOT APP_RENDER_SYSTEM OR APP_RENDER_SYSTEM STREQUAL "gl") list(APPEND PLATFORM_REQUIRED_DEPS OpenGl) set(APP_RENDER_SYSTEM gl) - list(APPEND SYSTEM_DEFINES -DGL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED) + list(APPEND SYSTEM_DEFINES -DGL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED + -DGL_SILENCE_DEPRECATION) else() message(SEND_ERROR "Currently only OpenGL rendering is supported. Please set APP_RENDER_SYSTEM to \"gl\"") endif() -- cgit v1.2.3