summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-04-13 13:46:54 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-13 13:46:54 (GMT)
commit0a122393d7cca291e2f695d85b3781593dbd4035 (patch)
tree501401b5d6324b1321b2d159fc9481dddabcad92 /Source/cmVisualStudio10TargetGenerator.cxx
parent07604a767ddb98b1020b546aa257bd7a965caf0a (diff)
parent8480c2afc09d3e976e4eff69081f41d812fb35cb (diff)
downloadCMake-0a122393d7cca291e2f695d85b3781593dbd4035.zip
CMake-0a122393d7cca291e2f695d85b3781593dbd4035.tar.gz
CMake-0a122393d7cca291e2f695d85b3781593dbd4035.tar.bz2
Merge branch 'backport-fix-explicit-CMakeLists.txt'
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 13af167..609ccf2 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1894,7 +1894,14 @@ void cmVisualStudio10TargetGenerator::WriteAllSources()
std::vector<cmGeneratorTarget::AllConfigSource> const& sources =
this->GeneratorTarget->GetAllConfigSources();
+ cmSourceFile const* srcCMakeLists =
+ this->LocalGenerator->CreateVCProjBuildRule();
+
for (cmGeneratorTarget::AllConfigSource const& si : sources) {
+ if (si.Source == srcCMakeLists) {
+ // Skip explicit reference to CMakeLists.txt source.
+ continue;
+ }
const char* tool = nullptr;
switch (si.Kind) {
case cmGeneratorTarget::SourceKindAppManifest: