summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-02-04 21:05:00 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-02-04 21:05:00 (GMT)
commit852f6018bbe2bb52a3b7cbef95dba04c8e8f6a0c (patch)
tree5baa9eb40f492dbc40d8ad25223ae2d8c0ba18e1
parent847c8403fe23e241d7fd3a7478790938afc24a9e (diff)
downloadCMake-852f6018bbe2bb52a3b7cbef95dba04c8e8f6a0c.zip
CMake-852f6018bbe2bb52a3b7cbef95dba04c8e8f6a0c.tar.gz
CMake-852f6018bbe2bb52a3b7cbef95dba04c8e8f6a0c.tar.bz2
ENH: make sure ALL_BUILD only shows up once
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 0af84e2..3432622 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -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())
{