diff --git a/CMakeLists.txt b/CMakeLists.txt index 8eb4d5e..b95a784 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -161,6 +161,8 @@ endif () if (CMAKE_ObjectiveC_COMPILER_WORKS) set(CMAKE_ObjectiveC_FLAGS "${CMAKE_ObjectiveC_FLAGS} ${CMAKE_C_FLAGS} -fobjc-exceptions") + add_definitions(-D_NATIVE_OBJC_EXCEPTIONS) + if (NOT WIN32) set(CMAKE_ObjectiveC_FLAGS "${CMAKE_ObjectiveC_FLAGS} -fPIC") endif ()