From 348555cc8c89b80eb9379b832d3c05e7b54a81dd Mon Sep 17 00:00:00 2001 From: Connor McLaughlin <stenzek@gmail.com> Date: Sun, 11 Oct 2020 12:45:21 +1000 Subject: [PATCH] Build: Link with objc runtime on macOS --- src/common/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 2f1eee823..8e004a720 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -172,6 +172,11 @@ if(USE_WAYLAND) target_link_libraries(common PRIVATE Wayland::Egl) endif() +if(APPLE) + # Needed for Vulkan Swap Chain. + target_link_libraries(common PRIVATE "objc") +endif() + if(APPLE AND NOT BUILD_LIBRETRO_CORE) target_sources(common PRIVATE gl/context_agl.mm