From 42628169c8c4934ca8355cb3f12720f38165024f Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Thu, 13 Feb 2025 14:45:29 +0100 Subject: [PATCH] Fix apple linking --- cmake/functions/AppleHelper.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/functions/AppleHelper.cmake b/cmake/functions/AppleHelper.cmake index cd1b46c..211f636 100644 --- a/cmake/functions/AppleHelper.cmake +++ b/cmake/functions/AppleHelper.cmake @@ -11,6 +11,7 @@ function(LinkAppleFrameworks TARGET) PUBLIC "-framework IOSurface" PUBLIC "-framework QuartzCore" PUBLIC "-framework AVFoundation" + PUBLIC "-framework ImageIO" PUBLIC "-lstdc++" PUBLIC c++ PUBLIC c @@ -31,6 +32,7 @@ function(LinkAppleFrameworks TARGET) find_library(QUARTZ Quartz) find_library(AVFOUNDATION AVFoundation) find_library(COREMEDIA CoreMedia) + find_library(IMAGEIO ImageIO) # link the frameworks located above if(IOS) @@ -46,4 +48,5 @@ function(LinkAppleFrameworks TARGET) target_link_libraries(${TARGET} PUBLIC ${SYSTEMCONFIGURATION}) target_link_libraries(${TARGET} PUBLIC ${AVFOUNDATION}) target_link_libraries(${TARGET} PUBLIC ${COREMEDIA}) + target_link_libraries(${TARGET} PUBLIC ${IMAGEIO}) endfunction()