diff options
author | Brad King <brad.king@kitware.com> | 2020-09-03 19:28:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-04 13:44:30 (GMT) |
commit | aea465793e9744fcda0c26dad14c0620b7448f14 (patch) | |
tree | 49755bcc289a1d1864acaee9a474e3171d4eb8db /Source/cmLocalVisualStudio10Generator.cxx | |
parent | 152724274534def1126f97a28f0ce9f0e126a2b2 (diff) | |
download | CMake-aea465793e9744fcda0c26dad14c0620b7448f14.zip CMake-aea465793e9744fcda0c26dad14c0620b7448f14.tar.gz CMake-aea465793e9744fcda0c26dad14c0620b7448f14.tar.bz2 |
cmLocalVisualStudio7Generator: Consolidate target iteration
Combine iteration with `cmLocalVisualStudio10Generator` and dispatch
generation of each target with a virtual `GenerateTarget` method.
Diffstat (limited to 'Source/cmLocalVisualStudio10Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio10Generator.cxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Source/cmLocalVisualStudio10Generator.cxx b/Source/cmLocalVisualStudio10Generator.cxx index 9706f2e..98e9db9 100644 --- a/Source/cmLocalVisualStudio10Generator.cxx +++ b/Source/cmLocalVisualStudio10Generator.cxx @@ -68,9 +68,6 @@ cmLocalVisualStudio10Generator::~cmLocalVisualStudio10Generator() void cmLocalVisualStudio10Generator::GenerateTarget(cmGeneratorTarget* target) { - if (!target->IsInBuildSystem()) { - return; - } auto& targetVisited = this->GetSourcesVisited(target); auto& deps = this->GlobalGenerator->GetTargetDirectDepends(target); for (auto& d : deps) { @@ -80,7 +77,7 @@ void cmLocalVisualStudio10Generator::GenerateTarget(cmGeneratorTarget* target) } if (static_cast<cmGlobalVisualStudioGenerator*>(this->GlobalGenerator) ->TargetIsFortranOnly(target)) { - this->CreateSingleVCProj(target->GetName(), target); + this->cmLocalVisualStudio7Generator::GenerateTarget(target); } else { cmVisualStudio10TargetGenerator tg( target, @@ -90,15 +87,6 @@ void cmLocalVisualStudio10Generator::GenerateTarget(cmGeneratorTarget* target) } } -void cmLocalVisualStudio10Generator::Generate() -{ - for (cmGeneratorTarget* gt : - this->GlobalGenerator->GetLocalGeneratorTargetsInOrder(this)) { - this->GenerateTarget(gt); - } - this->WriteStampFiles(); -} - void cmLocalVisualStudio10Generator::ReadAndStoreExternalGUID( const std::string& name, const char* path) { |