libphyslayer: Support SDL2 only sdl2transition
authorkoda
Sat, 14 Nov 2015 02:55:38 +0100
branchsdl2transition
changeset 11374 28c309f45269
parent 11373 011c5cc195cc
child 11375 7d0511a3cff8
libphyslayer: Support SDL2 only
misc/libphyslayer/CMakeLists.txt
--- a/misc/libphyslayer/CMakeLists.txt	Fri Nov 13 23:46:19 2015 +0100
+++ b/misc/libphyslayer/CMakeLists.txt	Sat Nov 14 02:55:38 2015 +0100
@@ -1,13 +1,6 @@
+find_package(SDL2 REQUIRED)
 
-if(${NOSDL2})
-    find_package(SDL REQUIRED)
-    include_directories(${SDL_INCLUDE_DIR})
-else(${NOSDL2})
-    find_package(SDL2 REQUIRED)
-    include_directories(${SDL2_INCLUDE_DIR})
-    set(SDL_LIBRARY ${SDL2_LIBRARY})
-endif(${NOSDL2})
-
+include_directories(${SDL2_INCLUDE_DIR})
 include_directories(${PHYSFS_INCLUDE_DIR})
 include_directories(${LUA_INCLUDE_DIR})
 
@@ -22,7 +15,7 @@
 #compiles and links actual library
 add_library (physlayer ${PHYSLAYER_SRCS})
 #TODO: find good VERSION and SOVERSION values
-target_link_libraries(physlayer ${SDL_LIBRARY} lua physfs)
+target_link_libraries(physlayer ${SDL2_LIBRARY} lua physfs)
 install(TARGETS physlayer RUNTIME DESTINATION ${target_binary_install_dir}
                           LIBRARY DESTINATION ${target_library_install_dir}
                           ARCHIVE DESTINATION ${target_library_install_dir})