diff options
author | milek7 <me@milek7.pl> | 2021-02-21 22:53:35 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2021-02-21 23:05:50 +0000 |
commit | b749d6f1cb53911f09b69397c0f3553e0eb64d39 (patch) | |
tree | 0fe52cf955c7c151937dfee2c48df06c1635c08d | |
parent | e74069e4c23c4805896131969062a2e221157aef (diff) | |
download | openttd-b749d6f1cb53911f09b69397c0f3553e0eb64d39.tar.xz |
Fix: Allow building with Allegro and without SDL on Linux
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 24496f459..ad78e441e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,8 +150,8 @@ check_ipo_supported(RESULT IPO_FOUND) show_options() if(UNIX AND NOT APPLE AND NOT OPTION_DEDICATED) - if(NOT SDL_FOUND AND NOT SDL2_FOUND) - message(FATAL_ERROR "SDL or SDL2 is required for this platform") + if(NOT SDL_FOUND AND NOT SDL2_FOUND AND NOT ALLEGRO_FOUND) + message(FATAL_ERROR "SDL, SDL2 or Allegro is required for this platform") endif() endif() if(APPLE) |