diff --git a/CMakeLists.txt b/CMakeLists.txt index e41d1787e..22deea922 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -156,7 +156,9 @@ elseif(LIBRETRO) endif() if(ANDROID OR USE_GLES) target_compile_definitions(${PROJECT_NAME} PRIVATE GLES GLES3 HAVE_OPENGLES HAVE_OPENGLES3) - elseif(IOS) + elseif(IOS) + find_package(OpenGL REQUIRED) + target_include_directories(${PROJECT_NAME} PRIVATE ${OPENGL_INCLUDE_DIR}) target_compile_definitions(${PROJECT_NAME} PRIVATE GLES GLES3 HAVE_OPENGLES HAVE_OPENGLES3) elseif(USE_GLES2) target_compile_definitions(${PROJECT_NAME} PRIVATE GLES GLES2 HAVE_OPENGLES HAVE_OPENGLES2)