macOS: silence OpenGL deprecation warnings

This commit is contained in:
sfan5 2021-03-08 13:36:44 +01:00
parent 03ad637114
commit 0a09f98c74

@ -75,6 +75,8 @@ elseif(APPLE)
find_library(COCOA_LIB Cocoa REQUIRED) find_library(COCOA_LIB Cocoa REQUIRED)
find_library(IOKIT_LIB IOKit REQUIRED) find_library(IOKIT_LIB IOKit REQUIRED)
link_libraries(${COCOA_LIB} ${IOKIT_LIB}) link_libraries(${COCOA_LIB} ${IOKIT_LIB})
add_definitions(-DGL_SILENCE_DEPRECATION)
elseif(WIN32) elseif(WIN32)
link_libraries(gdi32 winmm) link_libraries(gdi32 winmm)
else() else()