summaryrefslogtreecommitdiffstats
path: root/Source/cmAddExecutableCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-03-12 14:26:59 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-03-12 14:26:59 (GMT)
commitb99129d2d81a494055d40443e8e044c9db4ca807 (patch)
tree07cbf0e96e3cb1480e182f5bbbf860d2224beade /Source/cmAddExecutableCommand.cxx
parentcf7eeab37aa644a0a09cb40e8958d99e8d771857 (diff)
downloadCMake-b99129d2d81a494055d40443e8e044c9db4ca807.zip
CMake-b99129d2d81a494055d40443e8e044c9db4ca807.tar.gz
CMake-b99129d2d81a494055d40443e8e044c9db4ca807.tar.bz2
ENH: some code cleanup
Diffstat (limited to 'Source/cmAddExecutableCommand.cxx')
-rw-r--r--Source/cmAddExecutableCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmAddExecutableCommand.cxx b/Source/cmAddExecutableCommand.cxx
index e04c124..e791a82 100644
--- a/Source/cmAddExecutableCommand.cxx
+++ b/Source/cmAddExecutableCommand.cxx
@@ -31,7 +31,7 @@ bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& args)
++s;
bool use_win32 = false;
bool use_macbundle = false;
- bool in_all = true;
+ bool excludeFromAll = false;
while ( s != args.end() )
{
if (*s == "WIN32")
@@ -47,7 +47,7 @@ bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& args)
else if(*s == "EXCLUDE_FROM_ALL")
{
++s;
- in_all = false;
+ excludeFromAll = true;
}
else
{
@@ -64,7 +64,7 @@ bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& args)
std::vector<std::string> srclists(s, args.end());
cmTarget* tgt = this->Makefile->AddExecutable(exename.c_str(), srclists,
- in_all);
+ excludeFromAll);
if ( use_win32 )
{
tgt->SetProperty("WIN32_EXECUTABLE", "ON");