Fix ObjC code linking

This commit is contained in:
OPNA2608 2022-02-10 12:40:51 +01:00 committed by tildearrow
parent dc46c67d9f
commit f56d771a4d
1 changed files with 5 additions and 0 deletions

View File

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