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