libplatform: use ObjC flags on Apple
This commit is contained in:
parent
653e4badeb
commit
fe46de9053
|
@ -46,4 +46,9 @@ endif()
|
|||
if (APPLE)
|
||||
find_library(COCOA_LIBRARY Cocoa)
|
||||
target_link_libraries(platform ${COCOA_LIBRARY})
|
||||
target_compile_options(platform PRIVATE
|
||||
$<$<COMPILE_LANGUAGE:C>:-fobjc-exceptions>
|
||||
$<$<COMPILE_LANGUAGE:C>:-xobjective-c>
|
||||
$<$<COMPILE_LANGUAGE:CXX>:-fobjc-exceptions>
|
||||
)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue