Skip to content

Commit

Permalink
cmake: print a warning if SDL version is between 2.16 and 2.20 includ…
Browse files Browse the repository at this point in the history
…ed, ref #600
  • Loading branch information
illwieckz committed Apr 3, 2022
1 parent d6cff7a commit 2fd2ef5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,12 @@ endif()
if (BUILD_CLIENT OR WIN32)
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIR})

if (NOT SDL2_VERSION_STRING VERSION_LESS "2.16"
OR NOT SDL_VERSION_STRING VERSION_GREATER "2.20")
message(WARNING "SDL is known to be buggy between version 2.16 and 2.20, see https://github.com/DaemonEngine/Daemon/issues/600")
endif()

if (WIN32)
set(LIBS_ENGINE_BASE ${LIBS_ENGINE_BASE} ${SDL2_LIBRARY})
else()
Expand Down

0 comments on commit 2fd2ef5

Please sign in to comment.