cmake - set - xcode attribute - implicitly link objective-c runtime support

attributes, cmake, objective-c, set, xcode

Solution

The correct Xcode attribute to change this setting seems to be `CLANG_LINK_OBJC_RUNTIME`. Try:

set_target_properties(targetName PROPERTIES XCODE_ATTRIBUTE_CLANG_LINK_OBJC_RUNTIME "NO")

Problem

I want to set Implicitly Link Objective-C Runtime Support to NO in cmake source file. I tried in set_target_properties ``` XCODE_ATTRIBUTE_IMPLICITLY_LINK_OBJECTIVE-C_RUNTIME_SUPPORT NO ``` but it is not working. What is the rule to change an attribute? Or it should be predefined attribute from cmake? If it is where is the XCODE_ATTRIBUTE list?

Original source