diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-29 16:10:19 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-07 06:37:57 (GMT) |
commit | c38e30f68c7beffdc65af0f3799ae82ce60aaf67 (patch) | |
tree | a46d4525a0685b69df5558a98020e695e5209118 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | 5d3776a7ebb718ae6ed4724e0a8961cda68b6316 (diff) | |
download | CMake-c38e30f68c7beffdc65af0f3799ae82ce60aaf67.zip CMake-c38e30f68c7beffdc65af0f3799ae82ce60aaf67.tar.gz CMake-c38e30f68c7beffdc65af0f3799ae82ce60aaf67.tar.bz2 |
cmGeneratorTarget: Add methods for generate-time source addition.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index a4bce8a..8924564 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -112,7 +112,9 @@ void cmLocalVisualStudio7Generator::AddCMakeListsRules() } if(l->first != CMAKE_CHECK_BUILD_SYSTEM_TARGET) { - l->second.AddSource(sf->GetFullPath()); + cmGeneratorTarget* gt = + this->GlobalGenerator->GetGeneratorTarget(&l->second); + gt->AddSource(sf->GetFullPath()); } } } @@ -148,7 +150,9 @@ void cmLocalVisualStudio7Generator::FixGlobalTargets() force.c_str(), no_depends, no_main_dependency, force_commands, " ", 0, true)) { - tgt.AddSource(file->GetFullPath()); + cmGeneratorTarget* gt = + this->GlobalGenerator->GetGeneratorTarget(&tgt); + gt->AddSource(file->GetFullPath()); } } } |