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/cmLocalVisualStudio6Generator.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/cmLocalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index cc94cd4..ab215d1 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -243,7 +243,8 @@ void cmLocalVisualStudio6Generator::AddDSPBuildRule(cmTarget& tgt) no_working_directory, true); if(this->Makefile->GetSource(makefileIn.c_str())) { - tgt.AddSource(makefileIn); + cmGeneratorTarget* gt = this->GlobalGenerator->GetGeneratorTarget(&tgt); + gt->AddSource(makefileIn); } else { @@ -595,7 +596,8 @@ cmLocalVisualStudio6Generator origCommand.GetCommandLines(), comment, origCommand.GetWorkingDirectory().c_str())) { - target.AddSource(outsf->GetFullPath()); + cmGeneratorTarget* gt = this->GlobalGenerator->GetGeneratorTarget(&target); + gt->AddSource(outsf->GetFullPath()); } // Replace the dependencies with the output of this rule so that the |