summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-06-16 13:00:35 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-06-16 13:00:45 (GMT)
commitdd8befd9d333616fa870dbd13f394716dfbf797f (patch)
tree73c845428906f1c007e921828f14db2688ed415a /Source/cmTarget.cxx
parent7eddfed10f48fbe697e9f94433478d01b92b3c3d (diff)
parent69beee5314f70b3ddee8029f6ab3d684035005e5 (diff)
downloadCMake-dd8befd9d333616fa870dbd13f394716dfbf797f.zip
CMake-dd8befd9d333616fa870dbd13f394716dfbf797f.tar.gz
CMake-dd8befd9d333616fa870dbd13f394716dfbf797f.tar.bz2
Merge topic 'add_SYSTEM_prop'
69beee5314 Add SYSTEM target property Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7308
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index ffbb456..0e7c860 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -760,6 +760,10 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
}
}
+ if (this->IsImported()) {
+ this->SetProperty("SYSTEM", "ON");
+ }
+
for (auto const& prop : mf->GetState()->GetPropertyDefinitions().GetMap()) {
if (prop.first.second == cmProperty::TARGET &&
!prop.second.GetInitializeFromVariable().empty()) {