Fixed native exceptions gnustep compilation error
This commit is contained in:
parent
7f8c2052ac
commit
400e989125
1 changed files with 2 additions and 0 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Reference in a new issue