diff options
author | numzero <numzer0@yandex.ru> | 2023-03-02 02:42:51 +0300 |
---|---|---|
committer | numzero <numzer0@yandex.ru> | 2023-03-02 02:44:52 +0300 |
commit | 1326dfbcb1f6e9f69f136dccd1e05f9bc30896f4 (patch) | |
tree | d5410652cae73a6ef4b15a45e9971cc8623936ea | |
parent | 1bbe341daa0649954b33a6be985e98d49418cbe3 (diff) | |
download | irrlicht-1326dfbcb1f6e9f69f136dccd1e05f9bc30896f4.tar.xz |
Error out on unsupported configurations
-rw-r--r-- | source/Irrlicht/CMakeLists.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/Irrlicht/CMakeLists.txt b/source/Irrlicht/CMakeLists.txt index b78410c..4b3fa21 100644 --- a/source/Irrlicht/CMakeLists.txt +++ b/source/Irrlicht/CMakeLists.txt @@ -86,8 +86,7 @@ if(WIN32) elseif(IOS) add_definitions(-D_IRR_IOS_PLATFORM_ -D_IRR_COMPILE_WITH_IOS_BUILTIN_MAIN_) if(USE_SDL2) - message(WARNING "SDL2 backend is not supported on iOS") - set(USE_SDL2 FALSE) + message(SEND_ERROR "SDL2 backend is not supported on iOS") endif() set(DEVICE "IOS") elseif(OSX) @@ -96,8 +95,7 @@ elseif(OSX) elseif(ANDROID) add_definitions(-D_IRR_ANDROID_PLATFORM_ -D_IRR_COMPILE_ANDROID_ASSET_READER_) if(USE_SDL2) - message(WARNING "SDL2 backend is not supported on Android") - set(USE_SDL2 FALSE) + message(SEND_ERROR "SDL2 backend is not supported on Android") endif() set(DEVICE "Android") elseif(EMSCRIPTEN) |