mirror of
https://github.com/minetest/irrlicht.git
synced 2025-08-01 06:40:59 +02:00
macOS: silence OpenGL deprecation warnings
This commit is contained in:
@ -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()
|
||||||
|
Reference in New Issue
Block a user