--- a/QTfrontend/CMakeLists.txt Wed Jan 10 20:54:29 2024 +0100
+++ b/QTfrontend/CMakeLists.txt Thu Jan 25 22:22:00 2024 +0300
@@ -14,7 +14,11 @@
include(CheckLibraryExists)
find_package(SDL2 REQUIRED CONFIG)
-find_package(SDL2_mixer REQUIRED CONFIG) #audio in SDLInteraction
+if(WIN32 AND VCPKG_TOOLCHAIN)
+ find_package(SDL2_mixer REQUIRED CONFIG) #audio in SDLInteraction
+else()
+ find_package(SDL2_mixer 2 REQUIRED) #audio in SDLInteraction
+endif()
include_directories(${SDL2_INCLUDE_DIRS})
include_directories(${SDL2_MIXER_INCLUDE_DIRS})