From 45ef72272ae33f6885df089024322a7a53a0d3cb Mon Sep 17 00:00:00 2001 From: crueter Date: Thu, 26 Mar 2026 03:02:28 -0400 Subject: [PATCH] fix libs Signed-off-by: crueter --- CMakeLists.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c8ded5210..fd0bc96c42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -518,14 +518,15 @@ endfunction() # Put these BEFORE EXTERNALS or Boost WILL die # ============================================= if (APPLE) - foreach(fw Carbon Metal Cocoa IOKit CoreVideo CoreMedia Security UniformTypeIdentifiers) + if (IOS) + set(_libs Metal IOKit CoreVideo CoreMedia Security UniformTypeIdentifiers) + else() + set(_libs Carbon Metal Cocoa IOKit CoreVideo CoreMedia Security UniformTypeIdentifiers) + endif() + foreach(fw ${_libs}) find_library(${fw}_LIBRARY ${fw} REQUIRED) list(APPEND PLATFORM_LIBRARIES ${${fw}_LIBRARY}) endforeach() - if (IOS) - find_library(objc_LIBRARY objc REQUIRED) - list(APPEND PLATFORM_LIBRARIES ${objc_LIBRARY}) - endif() elseif (WIN32) # Target Windows 10 add_compile_definitions(_WIN32_WINNT=0x0A00 WINVER=0x0A00)