Skip to content

Commit 2971c21

Browse files
ilya-fedinjohn-preston
authored andcommitted
CMake: Don't duplicate compile options with target properties
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_WEAK: -fobjc-arc XCODE_ATTRIBUTE_GCC_INLINES_ARE_PRIVATE_EXTERN: -fvisibility-inlines-hidden XCODE_ATTRIBUTE_GCC_SYMBOLS_PRIVATE_EXTERN: -fvisibility=hidden
1 parent 6863ced commit 2971c21

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

cmake/init_target.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ endfunction()
1313
function(init_target target_name) # init_target(my_target folder_name)
1414
target_compile_features(${target_name} PUBLIC cxx_std_20)
1515

16-
set_target_properties(${target_name} PROPERTIES
17-
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_WEAK YES
18-
XCODE_ATTRIBUTE_GCC_INLINES_ARE_PRIVATE_EXTERN YES
19-
XCODE_ATTRIBUTE_GCC_SYMBOLS_PRIVATE_EXTERN YES
20-
)
2116
if (NOT TG_OWT_SPECIAL_TARGET STREQUAL "")
2217
set_target_properties(${target_name} PROPERTIES
2318
XCODE_ATTRIBUTE_GCC_OPTIMIZATION_LEVEL $<IF:$<CONFIG:Debug>,0,fast>

0 commit comments

Comments
 (0)