cmTarget: factor out always-initialized properties

This commit is contained in:
Ben Boeckel
2023-02-01 11:13:36 -05:00
parent 23bed98a20
commit 8844969f16
+9 -4
View File
@@ -325,7 +325,15 @@ struct TargetProperty
#define IC TargetProperty::InitCondition
#define R TargetProperty::Repetition
TargetProperty const StaticTargetProperties[] = {};
TargetProperty const StaticTargetProperties[] = {
/* clang-format off */
// Build graph properties
{ "VERIFY_INTERFACE_HEADER_SETS"_s },
// Metadata
{ "FOLDER"_s },
/* clang-format on */
};
#undef COMMON_LANGUAGE_PROPERTIES
#undef IC
@@ -899,9 +907,6 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
#endif
}
initProp("FOLDER");
initProp("VERIFY_INTERFACE_HEADER_SETS");
if (this->GetGlobalGenerator()->IsXcode()) {
initProp("XCODE_GENERATE_SCHEME");
}