diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-12 20:03:34 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-17 18:23:27 (GMT) |
commit | 2d833232a35715e412a40ee6207137ecfee7da36 (patch) | |
tree | 0f7a62df451c796ddd19b6d2c56161b74e619266 /Source | |
parent | 26602cf56c4697a589f320809afa7a127268d09f (diff) | |
download | CMake-2d833232a35715e412a40ee6207137ecfee7da36.zip CMake-2d833232a35715e412a40ee6207137ecfee7da36.tar.gz CMake-2d833232a35715e412a40ee6207137ecfee7da36.tar.bz2 |
cmCoreTryCompile: Remove variable assignment.
The variable is not a reference, and we return in the same scope
after assigning, so it has no effect.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index d9369e6..8e20c14 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -685,8 +685,7 @@ void cmCoreTryCompile::FindOutputFile(const std::string& targetName) command += tmpOutputFile; if(cmSystemTools::FileExists(command.c_str())) { - tmpOutputFile = cmSystemTools::CollapseFullPath(command); - this->OutputFile = tmpOutputFile; + this->OutputFile = cmSystemTools::CollapseFullPath(command); return; } } |