VisualStudio: Replace Compute override with AddExtraIDETargets override.

This commit is contained in:
Stephen Kelly 2015-09-15 20:47:35 +02:00
parent a9588e90bb
commit 21f428f4c0
4 changed files with 5 additions and 16 deletions

View File

@ -348,13 +348,9 @@ bool cmGlobalVisualStudio8Generator::AddCheckTarget()
}
//----------------------------------------------------------------------------
bool cmGlobalVisualStudio8Generator::Compute()
void cmGlobalVisualStudio8Generator::AddExtraIDETargets()
{
if (!cmGlobalVisualStudio7Generator::Compute())
{
return false;
}
cmGlobalVisualStudio7Generator::AddExtraIDETargets();
if(this->AddCheckTarget())
{
// All targets depend on the build-system check target.
@ -368,7 +364,6 @@ bool cmGlobalVisualStudio8Generator::Compute()
}
}
}
return true;
}
//----------------------------------------------------------------------------

View File

@ -67,7 +67,7 @@ public:
return !this->WindowsCEVersion.empty(); }
protected:
virtual bool Compute();
virtual void AddExtraIDETargets();
virtual const char* GetIDEVersion() { return "8.0"; }
virtual std::string FindDevEnvCommand();

View File

@ -64,13 +64,8 @@ std::string cmGlobalVisualStudioGenerator::GetRegistryBase(
}
//----------------------------------------------------------------------------
bool cmGlobalVisualStudioGenerator::Compute()
void cmGlobalVisualStudioGenerator::AddExtraIDETargets()
{
if (!cmGlobalGenerator::Compute())
{
return false;
}
// Add a special target that depends on ALL projects for easy build
// of one configuration only.
const char* no_working_dir = 0;
@ -144,7 +139,6 @@ bool cmGlobalVisualStudioGenerator::Compute()
static_cast<cmLocalVisualStudioGenerator*>(*lgi);
lg->AddCMakeListsRules();
}
return true;
}
//----------------------------------------------------------------------------

View File

@ -111,7 +111,7 @@ public:
cmGeneratorTarget*, std::vector<cmCustomCommand>& commands,
std::string const& configName);
protected:
virtual bool Compute();
virtual void AddExtraIDETargets();
// Does this VS version link targets to each other if there are
// dependencies in the SLN file? This was done for VS versions