Skip to content

Commit e85224d

Browse files
committed
cmake: link to OpenGLES framework for ios
1 parent 63833f5 commit e85224d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build/cmake/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,12 @@ myci_declare_library(${name}
4444
WINDOWS_ONLY_DEPENDENCIES
4545
unofficial-angle/unofficial::angle::libGLESv2
4646
)
47+
48+
if(APPLE)
49+
target_link_libraries(${name}
50+
PRIVATE
51+
# Link the iOS frameworks directly using the -framework flag string.
52+
# The quotes are important so CMake passes it as a single linker argument.
53+
"-framework OpenGLES"
54+
)
55+
endif()

0 commit comments

Comments
 (0)