ENH: make sure ALL_BUILD only shows up once

This commit is contained in:
Bill Hoffman 2008-02-04 16:05:00 -05:00
parent 847c8403fe
commit 852f6018bb

View File

@ -336,9 +336,11 @@ void cmGlobalVisualStudio7Generator::WriteTargetsToSolution(
{
bool skip = false;
// if it is a global target or the check build system target
// or the all_build target
// then only use the one that is for the root
if(target->GetType() == cmTarget::GLOBAL_TARGET
|| !strcmp(target->GetName(), CMAKE_CHECK_BUILD_SYSTEM_TARGET))
|| !strcmp(target->GetName(), CMAKE_CHECK_BUILD_SYSTEM_TARGET)
|| !strcmp(target->GetName(), this->GetAllTargetName()))
{
if(target->GetMakefile() != root->GetMakefile())
{