mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-22 06:05:36 +08:00
CMake: Fix iOS OpenGL warning
WebP sub-project searches for OpenGL, and sets the OpenGL variables to NOT_FOUND. Make sure all OpenGL variables are updated when OpenGL dependency is set manually.
This commit is contained in:
@@ -468,6 +468,7 @@ if(wxUSE_GUI)
|
||||
if(wxUSE_OPENGL)
|
||||
if(WXOSX_IPHONE)
|
||||
set(OPENGL_FOUND TRUE)
|
||||
set(OPENGL_INCLUDE_DIR "")
|
||||
set(OPENGL_LIBRARIES "-framework OpenGLES" "-framework QuartzCore" "-framework GLKit")
|
||||
else()
|
||||
find_package(OpenGL)
|
||||
|
||||
Reference in New Issue
Block a user