summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-08 20:54:40 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-09 21:24:27 (GMT)
commit1e0a9ac45d51e0076222026b9c44604b287a6eae (patch)
treea4e19e5ace29e72b0f5df4bd5fe9e6f06efc1c96 /Source/cmVisualStudio10TargetGenerator.cxx
parent0a312e2271710554f8e73518dc4b28bd1d0d1d7a (diff)
downloadCMake-1e0a9ac45d51e0076222026b9c44604b287a6eae.zip
CMake-1e0a9ac45d51e0076222026b9c44604b287a6eae.tar.gz
CMake-1e0a9ac45d51e0076222026b9c44604b287a6eae.tar.bz2
Refactor module definition source enumeration
Add a `cmGeneratorTarget::GetModuleDefinitionSources` method.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index fbf7447..a5b1edf 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1841,10 +1841,9 @@ void cmVisualStudio10TargetGenerator::WriteAllSources()
(*this->BuildFileStream) << cmVS10EscapeXML(obj) << "\" />\n";
}
- if (cmSourceFile const* defsrc =
- this->GeneratorTarget->GetModuleDefinitionFile("")) {
- this->WriteSource("None", defsrc);
- }
+ std::vector<cmSourceFile const*> defSources;
+ this->GeneratorTarget->GetModuleDefinitionSources(defSources, "");
+ this->WriteSources("None", defSources);
if (this->IsMissingFiles) {
this->WriteMissingFiles();