changeset 9650 | 1c7c87ce37fd |
parent 9339 | 14f5f3a1e2f7 |
child 9668 | 75aab6802a2e |
--- a/hedgewars/CMakeLists.txt Mon Oct 28 14:16:04 2013 +0100 +++ b/hedgewars/CMakeLists.txt Mon Oct 28 16:53:20 2013 +0100 @@ -1,4 +1,4 @@ -find_package(SDL) +find_package(SDL1or2) find_package(SDL_image) find_package(SDL_net) find_package(SDL_ttf) @@ -158,6 +158,10 @@ add_definitions(-dSDL_IMAGE_NEWER) endif(HAVE_IMGINIT) +if(NOT (SDL_VERSION VERSION_LESS 2.0)) + add_definitions(-dSDL2) +endif() + #needs to be last add_definitions(-dDEBUGFILE)