summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio8Generator.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/cmGlobalVisualStudio8Generator.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/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio8Generator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx
index 28f0425..70c00e9 100644
--- a/Source/cmGlobalVisualStudio8Generator.cxx
+++ b/Source/cmGlobalVisualStudio8Generator.cxx
@@ -449,7 +449,7 @@ void cmGlobalVisualStudio8Generator::WriteProjectDepends(
{
cmGeneratorTarget* gt = this->GetGeneratorTarget(&t);
TargetDependSet const& unordered = this->GetTargetDirectDepends(gt);
- OrderedTargetDependSet depends(unordered);
+ OrderedTargetDependSet depends(unordered, std::string());
for(OrderedTargetDependSet::const_iterator i = depends.begin();
i != depends.end(); ++i)
{