summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-09-08 15:08:05 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2010-09-08 15:08:05 (GMT)
commit28edb70a9e22314da875a8fa104636461b71d8c6 (patch)
treed10d341de179233daacfdd253799db9428855e91 /Source/cmGlobalVisualStudioGenerator.cxx
parent02e3f42a6a4bc2b94befd35c908750c10f612d44 (diff)
parente6ac0aacf6c3ce17141870e252fda77d994782d3 (diff)
downloadCMake-28edb70a9e22314da875a8fa104636461b71d8c6.zip
CMake-28edb70a9e22314da875a8fa104636461b71d8c6.tar.gz
CMake-28edb70a9e22314da875a8fa104636461b71d8c6.tar.bz2
Merge topic 'vs-project-groups'
e6ac0aa Add FOLDER target property, for IDEs (#3796)
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index 3493b1d..bae18a3 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -56,6 +56,21 @@ void cmGlobalVisualStudioGenerator::Generate()
AddUtilityCommand("ALL_BUILD", true, no_working_dir,
no_depends, no_commands, false,
"Build all projects");
+
+#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())
+ {
+ allBuild->SetProperty("FOLDER", this->GetPredefinedTargetsFolder());
+ }
+#endif
+
// Now make all targets depend on the ALL_BUILD target
cmTargets targets;
for(std::vector<cmLocalGenerator*>::iterator i = gen.begin();