diff options
author | fuzzard <fuzzard@kodi.tv> | 2021-08-31 09:13:55 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2021-09-01 11:06:46 +1000 |
commit | efd7e03a1db3740dc906b9b1cb6a6fd73ab6e254 (patch) | |
tree | b8625d55fe7187ced7d82869d30f0f5ef89bbd43 /cmake/scripts/darwin_embedded/ArchSetup.cmake | |
parent | 5cfe6f9722bb5cdf4ccc18b06d834dda7bccf11c (diff) |
[cmake] darwinembedded dont explicitly set opengles as platform_required_dep
Diffstat (limited to 'cmake/scripts/darwin_embedded/ArchSetup.cmake')
-rw-r--r-- | cmake/scripts/darwin_embedded/ArchSetup.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/scripts/darwin_embedded/ArchSetup.cmake b/cmake/scripts/darwin_embedded/ArchSetup.cmake index 6ea4562eed..01f535e9bb 100644 --- a/cmake/scripts/darwin_embedded/ArchSetup.cmake +++ b/cmake/scripts/darwin_embedded/ArchSetup.cmake @@ -29,6 +29,13 @@ else() set(NEON True) endif() +if(NOT APP_RENDER_SYSTEM OR APP_RENDER_SYSTEM STREQUAL "gles") + set(PLATFORM_REQUIRED_DEPS OpenGLES) + set(APP_RENDER_SYSTEM gles) +else() + message(SEND_ERROR "Currently only OpenGLES rendering is supported. Please set APP_RENDER_SYSTEM to \"gles\"") +endif() + list(APPEND CMAKE_SYSTEM_PREFIX_PATH ${NATIVEPREFIX}) list(APPEND DEPLIBS "-framework CoreFoundation" "-framework CoreVideo" |