From 0d738dfec9b80a739c70f4036ae65a47217437f9 Mon Sep 17 00:00:00 2001 From: Louis Moureaux Date: Sun, 24 Dec 2023 00:16:14 +0100 Subject: [PATCH] Adjust the SDL2_mixer target name for static linking --- client/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index a0bcf7e28a..3c9a847a59 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -170,7 +170,10 @@ if (AUDIO_SDL) # See https://github.com/microsoft/vcpkg/blob/2023.12.12/ports/sdl2/usage target_link_libraries(freeciv21-client PRIVATE $,SDL2::SDL2,SDL2::SDL2-static>) - target_link_libraries(freeciv21-client PRIVATE SDL2_mixer::SDL2_mixer) + target_link_libraries(freeciv21-client + PRIVATE $, + SDL2_mixer::SDL2_mixer, + SDL2_mixer::SDL2_mixer-static>) endif() endif()