summaryrefslogtreecommitdiff
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-28 10:35:08 -0400
committerBrad King <brad.king@kitware.com>2015-05-28 10:37:28 -0400
commit7e10f1691f61949430180882e3a2484d0859b9e2 (patch)
treed00d253e683f2d7623298daec05857aefb216dc7 /Source/cmFileCommand.cxx
parent0d37dcd33534be17ac0ae13cb59b18743dbdb4f1 (diff)
downloadcmake-7e10f1691f61949430180882e3a2484d0859b9e2.tar.gz
cmFileCommand: Clarify logic for populating LOG variable
The chunkDebug buffer we use to accumulate the LOG variable content is populated if and only if a log variable was requested by the call, but it is much clearer to check that a log variable was requested explicitly before populating it.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 984989e4b8..2c2c1c03b6 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -3287,7 +3287,7 @@ cmFileCommand::HandleDownloadCommand(std::vector<std::string> const& args)
}
}
- if(!chunkDebug.empty())
+ if (!logVar.empty())
{
chunkDebug.push_back(0);
this->Makefile->AddDefinition(logVar, &*chunkDebug.begin());