From ff313ec1a93b3c6bcded60bb5f50116e13bca4db Mon Sep 17 00:00:00 2001 From: fuzzard Date: Tue, 31 Aug 2021 09:15:04 +1000 Subject: [cmake] osx dont explicitly set opengl platform_required_deps --- cmake/platform/osx/osx.cmake | 9 +++++++-- 1 file 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 -- cgit v1.2.3