summaryrefslogtreecommitdiffstats
path: root/Source/cmAddLibraryCommand.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/cmAddLibraryCommand.cxx
parentcf7eeab37aa644a0a09cb40e8958d99e8d771857 (diff)
downloadCMake-b99129d2d81a494055d40443e8e044c9db4ca807.zip
CMake-b99129d2d81a494055d40443e8e044c9db4ca807.tar.gz
CMake-b99129d2d81a494055d40443e8e044c9db4ca807.tar.bz2
ENH: some code cleanup
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r--Source/cmAddLibraryCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx
index 6084e3a..09e3774 100644
--- a/Source/cmAddLibraryCommand.cxx
+++ b/Source/cmAddLibraryCommand.cxx
@@ -28,7 +28,7 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
// otherwise it defaults to static library.
int shared =
!cmSystemTools::IsOff(this->Makefile->GetDefinition("BUILD_SHARED_LIBS"));
- bool in_all = true;
+ bool excludeFromAll = false;
std::vector<std::string>::const_iterator s = args.begin();
@@ -60,7 +60,7 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
else if(*s == "EXCLUDE_FROM_ALL")
{
++s;
- in_all = false;
+ excludeFromAll = true;
}
else
{
@@ -85,7 +85,7 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
}
this->Makefile->AddLibrary(this->LibName.c_str(), shared, srclists,
- in_all);
+ excludeFromAll);
return true;
}