diff options
-rw-r--r-- | cmake/platform/osx/osx.cmake | 9 |
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 |