Documentation: Missing mention of the [variant=<Config>] syntax for [CMAKE_]_XCODE_ATTRIBUTE_<attribute> variables and properties.
CMake allows to specify Xcode Configuration that a given Xcode attribute applies to, regardless whether set via a variable or property:
set_target_properties(...
XCODE_ATTRIBUTE_LLVM_LTO "Monolithic"
XCODE_ATTRIBUTE_LLVM_LTO[variant=Debug] "Incremental"
)
will set the LLVM_LTO
build setting to Monolithic
for all Xcode configurations but Debug which will be set to Incremental
instead.
Neither CMAKE_XCODE_ATTRIBUTE_<an-attribute>
nor XCODE_ATTRIBUTE_<an-attribute>
mentions that.
Edited by Ilya Kulakov