Skip to content

Commit

Permalink
iOS/Android: cmake message if SDL not downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Dec 17, 2023
1 parent 258f81c commit f465c27
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ endif()
if (HELLOIMGUI_USE_SDL_OPENGL3)
# On desktop (linux, windows, osx) sdl is provided via vcpkg
# On iOS, the build is done externally via tools/ios/sdl_compile_ios.sh

if (ANDROID OR IOS)
# if the folder SDL is not present, it means that the user did not download the submodule
# we download it for him
if(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/SDL)
message(FATAL_ERROR "Please download SDL by running ${HELLOIMGUI_BASEPATH}/tools/sdl_download.sh")
endif()

add_subdirectory(SDL)
endif()
endif()

0 comments on commit f465c27

Please sign in to comment.