summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio71Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-22 14:14:49 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-22 14:25:58 (GMT)
commit03bfe71ae055ed9e5dbeb619967ee44e5f555459 (patch)
treefd1344e66b17d48cc94e4c3901373e657d67bbd6 /Source/cmGlobalVisualStudio71Generator.cxx
parentdce7d8befb94e2531d6c7d68b78b4b4a67ca024f (diff)
downloadCMake-03bfe71ae055ed9e5dbeb619967ee44e5f555459.zip
CMake-03bfe71ae055ed9e5dbeb619967ee44e5f555459.tar.gz
CMake-03bfe71ae055ed9e5dbeb619967ee44e5f555459.tar.bz2
VS: Refactor target ordering logic
Refactor cmGlobalVisualStudioGenerator::TargetCompare to store the name of the target that should come first instead of hard-coding "ALL_BUILD". Update client sites to specify "ALL_BUILD" when ordering for .sln files and an empty string otherwise (in cases when "ALL_BUILD" should not be encountered anyway).
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio71Generator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx
index 607642c..b913afc 100644
--- a/Source/cmGlobalVisualStudio71Generator.cxx
+++ b/Source/cmGlobalVisualStudio71Generator.cxx
@@ -94,7 +94,7 @@ void cmGlobalVisualStudio71Generator
TargetDependSet projectTargets;
TargetDependSet originalTargets;
this->GetTargetSets(projectTargets, originalTargets, root, generators);
- OrderedTargetDependSet orderedProjectTargets(projectTargets);
+ OrderedTargetDependSet orderedProjectTargets(projectTargets, "ALL_BUILD");
this->WriteTargetsToSolution(fout, root, orderedProjectTargets);