From f7736bfccf413afffd4e6f56e7659f2b67f0ee09 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Wed, 30 Aug 2023 01:34:54 +0200 Subject: [PATCH] fix: Silence OpenGL deprecation warnings on macOS --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e638aa2ab5..8858b06311b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1329,6 +1329,10 @@ if(APPLE) # will automatically insert retain/release calls on Objective-C objects. target_compile_options(mixxx-lib PUBLIC -fobjc-arc) + # Disable deprecation warnings for OpenGL on macOS as we won't switch to + # Apple's Metal API in the foreseeable future. + target_compile_definitions(mixxx-lib PUBLIC GL_SILENCE_DEPRECATION) + target_sources(mixxx-lib PRIVATE src/util/darkappearance.mm )