summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index f186c99..ffdb483 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -107,8 +107,11 @@ void cmTarget::TraceVSDependencies(std::string projFile,
}
// add in the project file itself
- srcFilesToProcess.push(projFile);
- srcFilesQueued.insert(projFile);
+ if (projFile.size())
+ {
+ srcFilesToProcess.push(projFile);
+ srcFilesQueued.insert(projFile);
+ }
// add in the library depends for custom targets
if (this->GetType() == cmTarget::UTILITY)
{