Volkan Ozyilmaz
Volkan Ozyilmaz

Reputation: 500

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

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?

Upvotes: 3

Views: 2103

Answers (1)

sakra
sakra

Reputation: 65751

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")

Upvotes: 5

Related Questions