Skip to content

Commit 8a263f9

Browse files
NativeApp: silenced GL/GLES deprecation warnings on macOS/iOS
1 parent 32c61ed commit 8a263f9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

NativeApp/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ elseif(PLATFORM_MACOS)
219219
endif()
220220

221221
target_link_libraries(${TARGET_NAME} PRIVATE ${OPENGL_LIBRARY} ${CORE_VIDEO} ${METAL_FRAMEWORK} ${CORE_ANIMATION})
222+
# Silence OpenGL deprecation warnings
223+
target_compile_definitions(${TARGET_NAME} PUBLIC GL_SILENCE_DEPRECATION)
222224

223225
endfunction()
224226

@@ -306,6 +308,9 @@ elseif(PLATFORM_IOS)
306308
endif()
307309

308310
target_link_libraries(${TARGET_NAME} PRIVATE ${OPENGLES} ${UIKIT} ${CORE_ANIMATION})
311+
# Silence OpenGLES deprecation warnings
312+
target_compile_definitions(${TARGET_NAME} PUBLIC GLES_SILENCE_DEPRECATION)
313+
309314
endfunction()
310315

311316
function(add_target_platform_app TARGET_NAME SOURCE INCLUDE ASSETS)

0 commit comments

Comments
 (0)