CMake: fix building media and gl lib for iOS

This commit is contained in:
Maarten Bent
2020-06-18 19:56:31 +02:00
parent 3ab4d9461b
commit 5041915001
5 changed files with 25 additions and 9 deletions

View File

@@ -385,7 +385,12 @@ if(wxUSE_GUI)
# extra dependencies
if(wxUSE_OPENGL)
find_package(OpenGL)
if(WXOSX_IPHONE)
set(OPENGL_FOUND TRUE)
set(OPENGL_LIBRARIES "-framework OpenGLES" "-framework QuartzCore")
else()
find_package(OpenGL)
endif()
if(NOT OPENGL_FOUND)
message(WARNING "opengl not found, wxGLCanvas won't be available")
wx_option_force_value(wxUSE_OPENGL OFF)