summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorTaylor Braun-Jones <taylor@braun-jones.org>2016-03-21 20:05:41 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-23 17:22:15 (GMT)
commitad140c6e1bb6eda5d17a199304578dbd92bedbad (patch)
tree156a117523c21b840f1c2b820cdd74be80856dee /Source/cmGlobalVisualStudioGenerator.cxx
parentf069be054833f465ab469b534fddbc52c5c9913b (diff)
downloadCMake-ad140c6e1bb6eda5d17a199304578dbd92bedbad.zip
CMake-ad140c6e1bb6eda5d17a199304578dbd92bedbad.tar.gz
CMake-ad140c6e1bb6eda5d17a199304578dbd92bedbad.tar.bz2
VS: Put ALL_BUILD in the PREDEFINED_TARGETS_FOLDER
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index b11b49a..04146fb 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -89,19 +89,13 @@ void cmGlobalVisualStudioGenerator::AddExtraIDETargets()
cmGeneratorTarget* gt = new cmGeneratorTarget(allBuild, gen[0]);
gen[0]->AddGeneratorTarget(gt);
-#if 0
- // Can't activate this code because we want ALL_BUILD
- // selected as the default "startup project" when first
- // opened in Visual Studio... And if it's nested in a
- // folder, then that doesn't happen.
//
// Organize in the "predefined targets" folder:
//
- if (this->UseFolderProperty())
+ if (this->UseFolderProperty() && this->GetVersion() > VS71)
{
allBuild->SetProperty("FOLDER", this->GetPredefinedTargetsFolder());
}
-#endif
// Now make all targets depend on the ALL_BUILD target
for(std::vector<cmLocalGenerator*>::iterator i = gen.begin();