SDL_mixer: cmake: use target_link_libraries to add link options

From d792a5fef2c8bdcd448a364a9d377877bd8b11c7 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Mon, 26 Sep 2022 23:25:08 +0200
Subject: [PATCH] cmake: use target_link_libraries to add link options

target_link_options cannot be used because it does not support static libraries
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index be8a25c4..fc09090f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -725,7 +725,7 @@ if(SDL2MIXER_MIDI_NATIVE)
         target_link_libraries(SDL2_mixer PRIVATE winmm)
     elseif(APPLE)
         target_sources(SDL2_mixer PRIVATE src/codecs/native_midi/native_midi_macosx.c)
-        target_link_options(SDL2_mixer PRIVATE -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,CoreServices)
+        target_link_libraries(SDL2_mixer PRIVATE -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,CoreServices)
     elseif(HAIKU)
         enable_language(CXX)
         target_sources(SDL2_mixer PRIVATE src/codecs/native_midi/native_midi_haiku.cpp)