summaryrefslogtreecommitdiff
path: root/Source/cmAddCustomTargetCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-11 17:33:46 -0500
committerBrad King <brad.king@kitware.com>2008-02-11 17:33:46 -0500
commita0715048dadc4402417a93cca15f3d2ef0db42de (patch)
tree18127f727b1f3a416e5f1d9a33bf559c318e3d5a /Source/cmAddCustomTargetCommand.cxx
parentf0cee3fe4cfa485de4748fb0586f7fa3c3095657 (diff)
downloadcmake-a0715048dadc4402417a93cca15f3d2ef0db42de.tar.gz
COMP: Fix shadowed local variable warning.
Diffstat (limited to 'Source/cmAddCustomTargetCommand.cxx')
-rw-r--r--Source/cmAddCustomTargetCommand.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx
index 085a80d48e..d7e479a660 100644
--- a/Source/cmAddCustomTargetCommand.cxx
+++ b/Source/cmAddCustomTargetCommand.cxx
@@ -159,12 +159,14 @@ bool cmAddCustomTargetCommand
}
// Enforce name uniqueness.
+ {
std::string msg;
if(!this->Makefile->EnforceUniqueName(args[0], msg))
{
this->SetError(msg.c_str());
return false;
}
+ }
// Add the utility target to the makefile.
bool escapeOldStyle = !verbatim;