ENH: Cleanup of install component list. There was already the list in the global generator. Use that one

This commit is contained in:
Andy Cedilnik 2006-10-31 14:28:48 -05:00
parent 605d8871bb
commit 897a2a9029
4 changed files with 1 additions and 23 deletions

View File

@ -1470,8 +1470,7 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
{
if(!cmakeCfgIntDir || !*cmakeCfgIntDir || cmakeCfgIntDir[0] == '.')
{
std::set<cmStdString>* componentsSet
= this->GetCMakeInstance()->GetInstallComponents();
std::set<cmStdString>* componentsSet = &this->InstallComponents;
cpackCommandLines.erase(cpackCommandLines.begin(),
cpackCommandLines.end());
depends.erase(depends.begin(), depends.end());
@ -1493,7 +1492,6 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
ostr << "Only default component available";
}
singleLine.push_back(ostr.str().c_str());
//cpackCommandLines.push_back(singleLine);
(*targets)["list_install_components"]
= this->CreateGlobalTarget("list_install_components",
ostr.str().c_str(),

View File

@ -33,8 +33,6 @@ cmInstallTargetGenerator
Component(component), Optional(optional)
{
this->Target->SetHaveInstallRule(true);
this->Target->GetMakefile()->GetCMakeInstance()->AddInstallComponent(
component);
}
//----------------------------------------------------------------------------

View File

@ -1307,17 +1307,6 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
return 1;
}
//----------------------------------------------------------------------------
void cmake::AddInstallComponent(const char* component)
{
if ( !component )
{
return;
}
this->InstallComponents.insert(component);
}
//----------------------------------------------------------------------------
void cmake::GetRegisteredGenerators(std::vector<std::string>& names)
{

View File

@ -285,11 +285,6 @@ class cmake
bool GetDebugOutput() { return this->DebugOutput; }
void DebugOutputOn() { this->DebugOutput = true;}
//! Add or get installation components
void AddInstallComponent(const char* component);
std::set<cmStdString>* GetInstallComponents()
{ return &this->InstallComponents; }
protected:
typedef cmGlobalGenerator* (*CreateGeneratorFunctionType)();
typedef std::map<cmStdString,
@ -308,8 +303,6 @@ protected:
std::set<cmStdString> WrittenFiles;
std::set<cmStdString> InstallComponents;
///! return true if the same cmake was used to make the cache.
bool CacheVersionMatches();
///! read in a cmake list file to initialize the cache