Skip to content

Commit

Permalink
cmake: warning is about SDL version between 2.0.16 and 2.0.20 not 2.1…
Browse files Browse the repository at this point in the history
…6 and 2.20, ref #600

See #600 (comment)
Thanks ZTM for the report.
  • Loading branch information
illwieckz committed May 2, 2022
1 parent a671c0b commit 4c12fdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Expand Up @@ -626,9 +626,9 @@ if (BUILD_CLIENT OR WIN32)
if(LINUX)
find_package(SDL2 QUIET CONFIG)
if(SDL2_VERSION)
if (SDL2_VERSION VERSION_GREATER_EQUAL "2.16"
AND SDL2_VERSION VERSION_LESS_EQUAL "2.20")
message(WARNING "SDL ${SDL2_VERSION} between version 2.16 and 2.20 is known to be buggy, see https://github.com/DaemonEngine/Daemon/issues/600")
if (SDL2_VERSION VERSION_GREATER_EQUAL "2.0.16"
AND SDL2_VERSION VERSION_LESS_EQUAL "2.0.20")
message(WARNING "SDL ${SDL2_VERSION} between version 2.0.16 and 2.0.20 is known to be buggy, see https://github.com/DaemonEngine/Daemon/issues/600")
endif()
else()
# CMake may be able to find SDL2 without supporting CONFIG
Expand Down

0 comments on commit 4c12fdf

Please sign in to comment.