summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomTargetCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-03-13 19:18:27 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-03-13 19:18:27 (GMT)
commitc53b26baf26bdb465fbbe003b9e184b66ee22d7a (patch)
tree0146deb8afa5277002a511f1a519477d1f2035e7 /Source/cmAddCustomTargetCommand.cxx
parent5891ba16ce5cec9ed81468da4d07f1513de756ee (diff)
downloadCMake-c53b26baf26bdb465fbbe003b9e184b66ee22d7a.zip
CMake-c53b26baf26bdb465fbbe003b9e184b66ee22d7a.tar.gz
CMake-c53b26baf26bdb465fbbe003b9e184b66ee22d7a.tar.bz2
ENH: some more cleanup
Diffstat (limited to 'Source/cmAddCustomTargetCommand.cxx')
-rw-r--r--Source/cmAddCustomTargetCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx
index 4141509..1bd6757 100644
--- a/Source/cmAddCustomTargetCommand.cxx
+++ b/Source/cmAddCustomTargetCommand.cxx
@@ -73,13 +73,13 @@ bool cmAddCustomTargetCommand::InitialPass(
tdoing doing = doing_command;
// Look for the ALL option.
- bool all = false;
+ bool excludeFromAll = true;
unsigned int start = 1;
if(args.size() > 1)
{
if(args[1] == "ALL")
{
- all = true;
+ excludeFromAll = false;
start = 2;
}
}
@@ -160,7 +160,7 @@ bool cmAddCustomTargetCommand::InitialPass(
// Add the utility target to the makefile.
bool escapeOldStyle = !verbatim;
- this->Makefile->AddUtilityCommand(args[0].c_str(), all,
+ this->Makefile->AddUtilityCommand(args[0].c_str(), excludeFromAll,
working_directory.c_str(), depends,
commandLines, escapeOldStyle, comment);