diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-02-01 16:13:36 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-02-02 17:43:13 (GMT) |
commit | 8844969f1659416fe024ba75d568e8d5ee7e4e66 (patch) | |
tree | b88ec20ecd48fb3f1c6a909c674fe81c5dc726b0 | |
parent | 23bed98a2068114e322ac7e36404a153401b6218 (diff) | |
download | CMake-8844969f1659416fe024ba75d568e8d5ee7e4e66.zip CMake-8844969f1659416fe024ba75d568e8d5ee7e4e66.tar.gz CMake-8844969f1659416fe024ba75d568e8d5ee7e4e66.tar.bz2 |
cmTarget: factor out always-initialized properties
-rw-r--r-- | Source/cmTarget.cxx | 13 |
1 files 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"); } |