Add the Cocoa library to the MacOS link (add others later..)

This commit is contained in:
Jean Pierre Cimalando 2020-03-06 15:02:58 +01:00 committed by Paul Fd
parent 86c4ed00ae
commit 7eadbbd753

View file

@ -189,6 +189,9 @@ function(plugin_add_vstgui NAME)
"${WINDOWSCODECS_LIBRARY}" "${WINDOWSCODECS_LIBRARY}"
"${SHLWAPI_LIBRARY}") "${SHLWAPI_LIBRARY}")
elseif(APPLE) elseif(APPLE)
find_library(COCOA_LIBRARY "Cocoa")
target_link_libraries("${NAME}" PRIVATE
"${COCOA_LIBRARY}")
# #
else() else()
find_package(X11 REQUIRED) find_package(X11 REQUIRED)