Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 471
Volkan Ozyilmaz Avatar asked Sep 18 '26 18:09

Volkan Ozyilmaz


1 Answers

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")
like image 74
sakra Avatar answered Sep 21 '26 08:09

sakra