--- a/hedgewars/CMakeLists.txt Wed Mar 06 03:49:52 2013 +0100
+++ b/hedgewars/CMakeLists.txt Wed Mar 06 10:13:23 2013 +0100
@@ -4,15 +4,14 @@
find_package(SDL_ttf)
find_package(SDL_mixer)
-
include (CheckLibraryExists)
#Mix_Init/Mix_Quit from SDL_mixer 1.2.9
-check_library_exists(${SDL_MIXER_LIBRARY} Mix_Init "" HAVE_MIXINIT)
+check_library_exists(${SDLMIXER_LIBRARY} Mix_Init "" HAVE_MIXINIT)
if(HAVE_MIXINIT)
list(APPEND pascal_flags "-dSDL_MIXER_NEWER")
endif()
#IMG_Init/IMG_Quit from SDL_image 1.2.7
-check_library_exists(${SDL_IMAGE_LIBRARY} IMG_Init "" HAVE_IMGINIT)
+check_library_exists(${SDLIMAGE_LIBRARY} IMG_Init "" HAVE_IMGINIT)
if(HAVE_IMGINIT)
list(APPEND pascal_flags "-dSDL_IMAGE_NEWER")
endif()