From fe46de90538bfcf399671ff0fd2d46d91143413c Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Sat, 7 Dec 2024 19:02:23 +0800 Subject: [PATCH] libplatform: use ObjC flags on Apple --- src/lib/platform/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/platform/CMakeLists.txt b/src/lib/platform/CMakeLists.txt index 75551b71..d5aba571 100644 --- a/src/lib/platform/CMakeLists.txt +++ b/src/lib/platform/CMakeLists.txt @@ -46,4 +46,9 @@ endif() if (APPLE) find_library(COCOA_LIBRARY Cocoa) target_link_libraries(platform ${COCOA_LIBRARY}) + target_compile_options(platform PRIVATE + $<$:-fobjc-exceptions> + $<$:-xobjective-c> + $<$:-fobjc-exceptions> + ) endif()