fix for Arch package
authoralfadur
Thu, 25 Jan 2024 22:22:00 +0300
changeset 16013 bb847fe6d51c
parent 16012 2c92499daa67
child 16014 e42d1819b150
fix for Arch package
QTfrontend/CMakeLists.txt
--- 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})