Skip to content

Commit cf65268

Browse files
committed
ios: silence deprecation warnings
1 parent 6b31b49 commit cf65268

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

build/cmake/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,7 @@ if(APPLE)
3838
# The quotes are important so CMake passes it as a single linker argument.
3939
"-framework OpenGLES"
4040
)
41+
42+
# Define the GLES_SILENCE_DEPRECATION macro to silence OpenGL ES deprecation warnings on Apple platforms.
43+
target_compile_definitions(${name} PRIVATE GLES_SILENCE_DEPRECATION)
4144
endif()

0 commit comments

Comments
 (0)