From 8844969f1659416fe024ba75d568e8d5ee7e4e66 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 1 Feb 2023 11:13:36 -0500 Subject: cmTarget: factor out always-initialized properties --- Source/cmTarget.cxx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index d04e1ac..15adcc9 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -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"); } -- cgit v0.12