diff options
author | Brad King <brad.king@kitware.com> | 2015-09-22 14:14:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-22 14:25:58 (GMT) |
commit | 03bfe71ae055ed9e5dbeb619967ee44e5f555459 (patch) | |
tree | fd1344e66b17d48cc94e4c3901373e657d67bbd6 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | dce7d8befb94e2531d6c7d68b78b4b4a67ca024f (diff) | |
download | CMake-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/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index cb5048d..b91ae11 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2849,7 +2849,7 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences() = this->GlobalGenerator->GetTargetDirectDepends(this->GeneratorTarget); typedef cmGlobalVisualStudioGenerator::OrderedTargetDependSet OrderedTargetDependSet; - OrderedTargetDependSet depends(unordered); + OrderedTargetDependSet depends(unordered, std::string()); this->WriteString("<ItemGroup>\n", 1); for( OrderedTargetDependSet::const_iterator i = depends.begin(); i != depends.end(); ++i) |