From 65b8c8693ccdfc65500a1896ad46badfffb279b4 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 de162e206a..0d9a0e92db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -523,14 +523,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)