VisualStudio: Skip global targets when processing.
This commit is contained in:
parent
32e4f6beca
commit
a1209be550
|
@ -108,6 +108,10 @@ void cmGlobalVisualStudioGenerator::Generate()
|
||||||
for(cmTargets::iterator t = targets.begin();
|
for(cmTargets::iterator t = targets.begin();
|
||||||
t != targets.end(); ++t)
|
t != targets.end(); ++t)
|
||||||
{
|
{
|
||||||
|
if (t->second.GetType() == cmTarget::GLOBAL_TARGET)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if(!this->IsExcluded(gen[0], t->second))
|
if(!this->IsExcluded(gen[0], t->second))
|
||||||
{
|
{
|
||||||
allBuild->AddUtility(t->second.GetName());
|
allBuild->AddUtility(t->second.GetName());
|
||||||
|
|
|
@ -88,7 +88,8 @@ void cmLocalVisualStudio6Generator::AddCMakeListsRules()
|
||||||
for(cmTargets::iterator l = tgts.begin();
|
for(cmTargets::iterator l = tgts.begin();
|
||||||
l != tgts.end(); l++)
|
l != tgts.end(); l++)
|
||||||
{
|
{
|
||||||
if (l->second.GetType() == cmTarget::INTERFACE_LIBRARY)
|
if (l->second.GetType() == cmTarget::INTERFACE_LIBRARY
|
||||||
|
|| l->second.GetType() == cmTarget::GLOBAL_TARGET)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,6 +108,10 @@ void cmLocalVisualStudio7Generator::AddCMakeListsRules()
|
||||||
// Add the rule to targets that need it.
|
// Add the rule to targets that need it.
|
||||||
for(cmTargets::iterator l = tgts.begin(); l != tgts.end(); ++l)
|
for(cmTargets::iterator l = tgts.begin(); l != tgts.end(); ++l)
|
||||||
{
|
{
|
||||||
|
if (l->second.GetType() == cmTarget::GLOBAL_TARGET)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if(l->first != CMAKE_CHECK_BUILD_SYSTEM_TARGET)
|
if(l->first != CMAKE_CHECK_BUILD_SYSTEM_TARGET)
|
||||||
{
|
{
|
||||||
l->second.AddSource(sf->GetFullPath());
|
l->second.AddSource(sf->GetFullPath());
|
||||||
|
|
Loading…
Reference in New Issue