Skip to content

Commit

Permalink
Adjust the SDL2_mixer target name for static linking
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoureaux committed Dec 25, 2023
1 parent 126d09b commit 0d738df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static>)
target_link_libraries(freeciv21-client PRIVATE SDL2_mixer::SDL2_mixer)
target_link_libraries(freeciv21-client
PRIVATE $<IF:$<TARGET_EXISTS:SDL2_mixer::SDL2_mixer>,
SDL2_mixer::SDL2_mixer,
SDL2_mixer::SDL2_mixer-static>)
endif()
endif()

Expand Down

0 comments on commit 0d738df

Please sign in to comment.