From f56d771a4dded1299fe4f0acb3382e2e4115dc74 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Thu, 10 Feb 2022 12:40:51 +0100 Subject: [PATCH] Fix ObjC code linking --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2c85930..f21d2df2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -327,6 +327,11 @@ if (WIN32) endif() endif() +if (APPLE) + find_library(COCOA Cocoa REQUIRED) + list(APPEND DEPENDENCIES_LIBRARIES ${COCOA}) +endif() + if (NOT MSVC) set(WARNING_FLAGS -Wall -Wextra -Wno-unused-parameter) if (WARNINGS_ARE_ERRORS)