hedgewars/CMakeLists.txt
changeset 2420 b7390a3040f8
parent 2413 d921d13a8546
child 2494 1e10a47cabea
--- a/hedgewars/CMakeLists.txt	Sun Oct 11 20:25:24 2009 +0000
+++ b/hedgewars/CMakeLists.txt	Sun Oct 11 20:40:03 2009 +0000
@@ -1,9 +1,9 @@
 configure_file(${hedgewars_SOURCE_DIR}/hedgewars/proto.inc.in ${CMAKE_CURRENT_BINARY_DIR}/proto.inc)
 
-find_package(SDL REQUIRED)
-find_package(SDL_image REQUIRED)
-find_package(SDL_net REQUIRED)
-find_package(SDL_ttf REQUIRED)
+find_package(SDL)
+find_package(SDL_image)
+find_package(SDL_net)
+find_package(SDL_ttf)
 
 
 #SOURCE AND PROGRAMS SECTION 
@@ -116,6 +116,8 @@
 #DEPENDECIES AND EXECUTABLES SECTION
 IF(APPLE)
 #let's build sdlmain, which is absent from the framework
+	find_package(SDL REQUIRED)
+
 	set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})
 	include_directories(${SDL_INCLUDE_DIR})
 	link_libraries(${SDL_LIBRARY})