mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
CMake: On Apple, silence build-time OpenGL deprecation warnings
This commit is contained in:
parent
f92b88f35b
commit
c39bda57a0
@ -37,6 +37,12 @@ composite_sources(p3glstuff P3GLSTUFF_SOURCES)
|
|||||||
add_component_library(p3glstuff NOINIT ${P3GLSTUFF_HEADERS} ${P3GLSTUFF_SOURCES})
|
add_component_library(p3glstuff NOINIT ${P3GLSTUFF_HEADERS} ${P3GLSTUFF_SOURCES})
|
||||||
target_link_libraries(p3glstuff panda)
|
target_link_libraries(p3glstuff panda)
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
# We acknowledge Apple's hostility to open standards so that the SDK won't
|
||||||
|
# bother our users about it.
|
||||||
|
target_compile_definitions(p3glstuff PUBLIC GL_SILENCE_DEPRECATION)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT BUILD_METALIBS)
|
if(NOT BUILD_METALIBS)
|
||||||
install(TARGETS p3glstuff
|
install(TARGETS p3glstuff
|
||||||
EXPORT OpenGL COMPONENT OpenGL
|
EXPORT OpenGL COMPONENT OpenGL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user