Permalink
Browse files

cmake: fixed sdl_mixer library var to be compatible with both versions

  • Loading branch information...
1 parent 1c2120d commit bfc56624b3b3762ced0e5a40a27ddc54d6054aff @lynxlynxlynx lynxlynxlynx committed May 5, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 gemrb/plugins/SDLAudio/CMakeLists.txt
View
6 gemrb/plugins/SDLAudio/CMakeLists.txt
@@ -1,6 +1,6 @@
-IF (SDLMIXER_LIBRARY)
+IF (SDL_MIXER_LIBRARIES)
INCLUDE_DIRECTORIES( ${SDL_INCLUDE_DIR} ${SDLMIXER_INCLUDE_DIR})
ADD_GEMRB_PLUGIN (SDLAudio SDLAudio.cpp )
- TARGET_LINK_LIBRARIES( SDLAudio ${SDL_LIBRARY} ${SDLMIXER_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} )
-ENDIF (SDLMIXER_LIBRARY)
+ TARGET_LINK_LIBRARIES( SDLAudio ${SDL_LIBRARY} ${SDL_MIXER_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
+ENDIF (SDL_MIXER_LIBRARIES)

0 comments on commit bfc5662

Please sign in to comment.