Require SDL2 2.0.4 on all target platforms.

This commit is contained in:
Gregory A Lundberg 2016-10-16 00:55:24 -05:00
parent db5cf990de
commit 907eb5bf7e
2 changed files with 2 additions and 10 deletions

View file

@ -58,11 +58,7 @@ option(ENABLE_LIBINTL "Enable using libintl for translations instead of Boost.Lo
option(ENABLE_HISTORY "Enable using GNU history for history in lua console" ON)
if(UNIX AND NOT APPLE AND NOT CYGWIN)
find_package(SDL2 2.0.2 REQUIRED)
else (UNIX AND NOT APPLE AND NOT CYGWIN)
find_package(SDL2 2.0.4 REQUIRED)
endif (UNIX AND NOT APPLE AND NOT CYGWIN)
find_package(SDL2 2.0.4 REQUIRED)
find_package(Boost 1.36 REQUIRED COMPONENTS iostreams program_options regex system thread)
find_package(Boost 1.40 REQUIRED COMPONENTS random)

View file

@ -178,11 +178,7 @@ if env['distcc']:
if env['ccache']: env.Tool('ccache')
SDL2_version = '';
if env["PLATFORM"] is "win32" or env["PLATFORM"] is "cygwin" or env["PLATFORM"] is "darwin":
SDL2_version = '2.0.4';
else:
SDL2_version = '2.0.2';
SDL2_version = '2.0.4';
Help("""Arguments may be a mixture of switches and targets in any order.