support old cmake style variables
authorkoda
Wed, 06 Mar 2013 10:13:23 +0100
changeset 8664 6204ac0293b4
parent 8663 25b35de44234
child 8665 3ff8694d9e22
support old cmake style variables
hedgewars/CMakeLists.txt
--- 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()