diff options
author | Brad King <brad.king@kitware.com> | 2021-06-10 15:38:57 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-10 15:41:18 -0400 |
commit | ea6d338ea10cd9a567e727cbf3d365966cb6f43c (patch) | |
tree | b2f47b7a8e4cba9976a0ca29c0371670b7cfde78 /Source/cmMakefile.cxx | |
parent | 5fd68d3ef75d590da383b5189ee7f952bd560a30 (diff) | |
download | cmake-ea6d338ea10cd9a567e727cbf3d365966cb6f43c.tar.gz |
cmState: Record imported target names in each directory
Model the change after commit 089868a244 (cmState: Record buildsystem
target names in each directory, 2016-09-16, v3.7.0-rc1~79^2~3).
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 908b3f0d25..d2d34f9fb7 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -4134,6 +4134,7 @@ cmTarget* cmMakefile::AddImportedTarget(const std::string& name, // Add to the set of available imported targets. this->ImportedTargets[name] = target.get(); this->GetGlobalGenerator()->IndexTarget(target.get()); + this->GetStateSnapshot().GetDirectory().AddImportedTargetName(name); // Transfer ownership to this cmMakefile object. this->ImportedTargetsOwned.push_back(std::move(target)); |