misc/libphyslayer/CMakeLists.txt
branchsdl2transition
changeset 9677 71626318f80e
parent 9650 1c7c87ce37fd
child 9679 dfaa39674e1e
--- a/misc/libphyslayer/CMakeLists.txt	Tue Nov 05 11:04:26 2013 +0400
+++ b/misc/libphyslayer/CMakeLists.txt	Wed Nov 06 00:59:33 2013 +0400
@@ -1,7 +1,13 @@
 
-find_package(SDL1or2)
+if(${USESDL12})
+    find_package(SDL REQUIRED)
+    include_directories(${SDL_INCLUDE_DIR})
+else(${USESDL12})
+    find_package(SDL2 REQUIRED)
+    include_directories(${SDL2_INCLUDE_DIR})
+endif(${USESDL12})
+
 include_directories(${PHYSFS_INCLUDE_DIR})
-include_directories(${SDL_INCLUDE_DIR})
 include_directories(${LUA_INCLUDE_DIR})
 
 ## extra functions needed by Hedgewars