diff options
author | Andrey Filipenkov <decapitator@ukr.net> | 2019-07-19 04:22:10 +0500 |
---|---|---|
committer | Andrey Filipenkov <decapitator@ukr.net> | 2019-08-08 23:21:09 +0300 |
commit | bed3d3b096381a25f62ac28e56a69df7915a49f1 (patch) | |
tree | d3354a76d5239559f89953803085832d89508c51 /cmake/scripts/darwin_embedded | |
parent | e27ffa6c2c0cdcf1dcee1d9e2703965626053499 (diff) |
[darwin] create macro for ARC enabling
Diffstat (limited to 'cmake/scripts/darwin_embedded')
-rw-r--r-- | cmake/scripts/darwin_embedded/ArchSetup.cmake | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cmake/scripts/darwin_embedded/ArchSetup.cmake b/cmake/scripts/darwin_embedded/ArchSetup.cmake index 35607142db..2e8b056f7a 100644 --- a/cmake/scripts/darwin_embedded/ArchSetup.cmake +++ b/cmake/scripts/darwin_embedded/ArchSetup.cmake @@ -47,12 +47,8 @@ set(CMAKE_XCODE_ATTRIBUTE_INLINES_ARE_PRIVATE_EXTERN OFF) set(CMAKE_XCODE_ATTRIBUTE_GCC_SYMBOLS_PRIVATE_EXTERN OFF) set(CMAKE_XCODE_ATTRIBUTE_COPY_PHASE_STRIP OFF) -if(CMAKE_GENERATOR STREQUAL Xcode) - set(CMAKE_XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC YES) -else() - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fobjc-arc") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fobjc-arc") -endif() +include(cmake/scripts/darwin/Macros.cmake) +enable_arc() # Xcode strips dead code by default which breaks wrapping set(CMAKE_XCODE_ATTRIBUTE_DEAD_CODE_STRIPPING OFF) |