Skip to content

Commit

Permalink
fix: Silence OpenGL deprecation warnings on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Aug 30, 2023
1 parent 6f65df2 commit f7736bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit f7736bf

Please sign in to comment.