summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-04-07 19:41:05 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-04-07 19:41:41 (GMT)
commit11bd9b5588a9ea4922591772e633db5f4ac0862c (patch)
treedd95ae7aa90c12447634977f546875246ae1508b /Source/cmNinjaNormalTargetGenerator.cxx
parentf93e81858b5e1243714ed7f26aadfc791a7b0ff0 (diff)
downloadCMake-11bd9b5588a9ea4922591772e633db5f4ac0862c.zip
CMake-11bd9b5588a9ea4922591772e633db5f4ac0862c.tar.gz
CMake-11bd9b5588a9ea4922591772e633db5f4ac0862c.tar.bz2
Ninja: remove GCC -Wshadow warning
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 25d742b..cf2b427 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -432,7 +432,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
// If we have any PRE_LINK commands, we need to go back to HOME_OUTPUT for
// the link commands.
if (!preLinkCmdLines.empty()) {
- std::string path = this->GetLocalGenerator()->ConvertToOutputFormat(
+ path = this->GetLocalGenerator()->ConvertToOutputFormat(
this->GetMakefile()->GetHomeOutputDirectory(),
cmLocalGenerator::SHELL);
preLinkCmdLines.push_back("cd " + path);