From 6605548066bbff052ea1c1f7e4fec14446fa7727 Mon Sep 17 00:00:00 2001 From: assiduous Date: Tue, 4 Feb 2020 15:00:06 -0800 Subject: Silenced OpenGL deprecation warnings on Mac --- Graphics/GraphicsEngineOpenGL/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt index bbaf59c5..3097c7fc 100644 --- a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt +++ b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt @@ -234,6 +234,10 @@ PUBLIC ) target_compile_definitions(Diligent-GraphicsEngineOpenGL-shared PUBLIC ENGINE_DLL=1) +if(PLATFORM_MACOS) + # Silence OpenGL deprecation warnings + target_compile_definitions(Diligent-GraphicsEngineOpenGL-static PUBLIC GL_SILENCE_DEPRECATION) +endif() if(PLATFORM_WIN32) -- cgit v1.2.3