diff --git a/CMakeLists.txt b/CMakeLists.txt index b7b9a2fcd9..a65a66ac95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -482,9 +482,10 @@ endfunction() # Put these BEFORE EXTERNALS or Boost WILL die # ============================================= if (APPLE) - set(_libs Carbon Metal Cocoa IOKit CoreVideo CoreMedia Security) if (IOS) - list(APPEND _libs objc) + set(_libs Metal IOKit CoreVideo CoreMedia Security) + else() + set(_libs Carbon Metal Cocoa IOKit CoreVideo CoreMedia Security) endif() foreach(fw ${_libs}) find_library(${fw}_LIBRARY ${fw} REQUIRED)