aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2021-08-31 09:15:04 +1000
committerfuzzard <fuzzard@kodi.tv>2021-09-01 11:06:46 +1000
commitff313ec1a93b3c6bcded60bb5f50116e13bca4db (patch)
tree41878956116184c1a92133eb8ae170fc1eb679e5
parentefd7e03a1db3740dc906b9b1cb6a6fd73ab6e254 (diff)
[cmake] osx dont explicitly set opengl platform_required_deps
-rw-r--r--cmake/platform/osx/osx.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/platform/osx/osx.cmake b/cmake/platform/osx/osx.cmake
index fbe8d96131..931e568785 100644
--- a/cmake/platform/osx/osx.cmake
+++ b/cmake/platform/osx/osx.cmake
@@ -1,2 +1,7 @@
-set(PLATFORM_REQUIRED_DEPS OpenGl Sdl)
-set(APP_RENDER_SYSTEM gl)
+if(NOT APP_RENDER_SYSTEM OR APP_RENDER_SYSTEM STREQUAL "gl")
+ list(APPEND PLATFORM_REQUIRED_DEPS OpenGl)
+ set(APP_RENDER_SYSTEM gl)
+else()
+ message(SEND_ERROR "Currently only OpenGL rendering is supported. Please set APP_RENDER_SYSTEM to \"gl\"")
+endif()
+list(APPEND PLATFORM_REQUIRED_DEPS Sdl) \ No newline at end of file