QTfrontend/CMakeLists.txt
changeset 12386 e4f8bf43224d
parent 11851 5edd66c2d422
child 12896 8869b5256720
--- a/QTfrontend/CMakeLists.txt	Sun Apr 30 00:11:50 2017 +0200
+++ b/QTfrontend/CMakeLists.txt	Sun Apr 30 00:28:17 2017 +0200
@@ -21,9 +21,9 @@
 endif()
 
 find_package(SDL2 REQUIRED)
-find_package(SDL2_mixer REQUIRED) #audio in SDLInteraction
+find_package(SDL2_mixer 2 REQUIRED) #audio in SDLInteraction
 include_directories(${SDL2_INCLUDE_DIR})
-include_directories(${SDL2MIXER_INCLUDE_DIR})
+include_directories(${SDL2_MIXER_INCLUDE_DIRS})
 
 if(LIBAV_FOUND)
     add_definitions(-DVIDEOREC -D__STDC_CONSTANT_MACROS)
@@ -203,7 +203,7 @@
 
 list(APPEND HW_LINK_LIBS
     ${SDL2_LIBRARY}
-    ${SDL2MIXER_LIBRARY}
+    ${SDL2_MIXER_LIBRARIES}
     )
     
 if(WIN32 AND NOT UNIX)