Fix linking against sdl2-mixer
authorunC0Rr
Sun, 25 Jun 2023 20:01:04 +0200
changeset 15992 4013354585be
parent 15991 4ad8dd66d9d5
child 15993 cf5c7fa71134
Fix linking against sdl2-mixer
QTfrontend/CMakeLists.txt
project_files/hwc/CMakeLists.txt
--- a/QTfrontend/CMakeLists.txt	Thu Jun 22 09:13:50 2023 +0200
+++ b/QTfrontend/CMakeLists.txt	Sun Jun 25 20:01:04 2023 +0200
@@ -232,7 +232,7 @@
 if(WIN32 AND VCPKG_TOOLCHAIN)
     list(APPEND HW_LINK_LIBS SDL2::SDL2 SDL2_mixer::SDL2_mixer)
 else()  
-    list(APPEND HW_LINK_LIBS ${SDL2_LIBRARIES} ${SDL2_MIXER_LIBRARIES})
+    list(APPEND HW_LINK_LIBS ${SDL2_LIBRARIES} ${SDL2_MIXER_LIBRARY})
 endif() 
 
 if(WIN32 AND NOT UNIX)
--- a/project_files/hwc/CMakeLists.txt	Thu Jun 22 09:13:50 2023 +0200
+++ b/project_files/hwc/CMakeLists.txt	Sun Jun 25 20:01:04 2023 +0200
@@ -112,7 +112,7 @@
                                 ${LUA_LIBRARY}
                                 ${OPENGL_LIBRARY}
                                 ${SDL2_LIBRARIES}
-                                ${SDL2_MIXER_LIBRARIES}
+                                ${SDL2_MIXER_LIBRARY}
                                 ${SDL2_NET_LIBRARIES}
                                 ${SDL2_IMAGE_LIBRARIES}
                                 ${SDL2_TTF_LIBRARIES}