--- a/hedgewars/CMakeLists.txt Fri Mar 26 00:26:32 2010 +0000
+++ b/hedgewars/CMakeLists.txt Fri Mar 26 00:37:36 2010 +0000
@@ -1,5 +1,3 @@
-configure_file(${hedgewars_SOURCE_DIR}/hedgewars/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc)
-
find_package(SDL)
find_package(SDL_image)
find_package(SDL_net)
@@ -7,6 +5,8 @@
find_package(SDL_mixer)
find_package(Lua)
+configure_file(${hedgewars_SOURCE_DIR}/hedgewars/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc)
+
#find which version of SDL_image and SDL_mixer we have (for IMG_Init and Mix_Init)
#if the headers are not installed, the newer apis won't be activated
find_file(sdlmixer_h SDL_mixer.h ${SDLMIXER_INCLUDE_DIR})