SDL_image: cmake: use target_link_libraries to add link options

From 199c5c7c1e7c97b75e880605b3eac9de0a34757b Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Mon, 26 Sep 2022 23:34:04 +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 d60ca2c6..4a40019c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -297,7 +297,7 @@ endif()
 
 if(APPLE)
     if(SDL2IMAGE_BACKEND_IMAGEIO)
-        target_link_options(SDL2_image PRIVATE -Wl,-framework,ApplicationServices)
+        target_link_libraries(SDL2_image PRIVATE -Wl,-framework,ApplicationServices)
         target_link_libraries(SDL2_image PRIVATE objc)
         target_sources(SDL2_image PRIVATE
             IMG_ImageIO.m