macOS: Link Cocoa framework explicitly when not building with Qt6

Seems to be needed for the classes used by DuckStation's GL context
code.
This commit is contained in:
Nadia Holmquist Pedersen 2022-10-15 20:24:22 +02:00
parent c68e8ee8ef
commit 2f4bd45e5e
1 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,10 @@ if (WIN32)
../glad/glad_wgl.c
)
elseif (APPLE)
if (NOT USE_QT6)
find_library(COCOA_LIB Cocoa)
target_link_libraries(melonDS PRIVATE ${COCOA_LIB})
endif()
target_sources(melonDS PRIVATE
../duckstation/gl/context_agl.mm
)