diff options
author | Ken Martin <ken.martin@kitware.com> | 2007-03-12 14:26:59 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2007-03-12 14:26:59 (GMT) |
commit | b99129d2d81a494055d40443e8e044c9db4ca807 (patch) | |
tree | 07cbf0e96e3cb1480e182f5bbbf860d2224beade /Source/cmAddExecutableCommand.cxx | |
parent | cf7eeab37aa644a0a09cb40e8958d99e8d771857 (diff) | |
download | CMake-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.cxx | 6 |
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"); |