- removed SDL2 version check

https://forum.zdoom.org/viewtopic.php?t=72152
This commit is contained in:
alexey.lysiuk 2021-05-03 08:20:01 +03:00
parent 80ba522b20
commit 66e220ff9c
1 changed files with 0 additions and 11 deletions

View File

@ -178,17 +178,6 @@ else()
# Non-Windows version also needs SDL except native OS X backend
if( NOT APPLE OR NOT OSX_COCOA_BACKEND )
find_package( SDL2 REQUIRED )
set( CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES}" "${SDL2_INCLUDE_DIR}" )
CHECK_CXX_SOURCE_COMPILES( "#include <SDL_version.h>
#if SDL_VERSION_ATLEAST(2, 0, 6)
int main() {}
#endif" SDL2_MIN_VERSION )
if ( NOT SDL2_MIN_VERSION )
message( SEND_ERROR "Only SDL 2.0.6 or later is supported." )
endif()
include_directories( "${SDL2_INCLUDE_DIR}" )
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${SDL2_LIBRARY}" )
endif()