Build: Link with objc runtime on macOS

This commit is contained in:
Connor McLaughlin 2020-10-11 12:45:21 +10:00
parent d39c9f5d1c
commit 348555cc8c
1 changed files with 5 additions and 0 deletions

View File

@ -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