diff options
author | Brad King <brad.king@kitware.com> | 2015-05-28 14:35:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-28 14:37:28 (GMT) |
commit | 7e10f1691f61949430180882e3a2484d0859b9e2 (patch) | |
tree | d00d253e683f2d7623298daec05857aefb216dc7 | |
parent | 0d37dcd33534be17ac0ae13cb59b18743dbdb4f1 (diff) | |
download | CMake-7e10f1691f61949430180882e3a2484d0859b9e2.zip CMake-7e10f1691f61949430180882e3a2484d0859b9e2.tar.gz CMake-7e10f1691f61949430180882e3a2484d0859b9e2.tar.bz2 |
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.
-rw-r--r-- | Source/cmFileCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 984989e..2c2c1c0 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()); |