summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-10-07 13:54:24 (GMT)
committerBrad King <brad.king@kitware.com>2010-10-07 13:54:24 (GMT)
commit973df7c0e94f0bbc0403c6e2038363a75bb81bca (patch)
treeca12029ab244ed0274d9b6ca9a0dd2916f3709eb /Source/cmVisualStudio10TargetGenerator.cxx
parentba3064b5848a994765d5fbf76ff516cd98f4465f (diff)
downloadCMake-973df7c0e94f0bbc0403c6e2038363a75bb81bca.zip
CMake-973df7c0e94f0bbc0403c6e2038363a75bb81bca.tar.gz
CMake-973df7c0e94f0bbc0403c6e2038363a75bb81bca.tar.bz2
VS10: Order .vcxproj dependencies deterministically (#10502)
This avoids needless modification of the project files during regeneration.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 9c0364b..524be8b 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1479,10 +1479,13 @@ void cmVisualStudio10TargetGenerator::WriteEvent(
void cmVisualStudio10TargetGenerator::WriteProjectReferences()
{
- cmGlobalGenerator::TargetDependSet const& depends
+ cmGlobalGenerator::TargetDependSet const& unordered
= this->GlobalGenerator->GetTargetDirectDepends(*this->Target);
+ typedef cmGlobalVisualStudioGenerator::OrderedTargetDependSet
+ OrderedTargetDependSet;
+ OrderedTargetDependSet depends(unordered);
this->WriteString("<ItemGroup>\n", 1);
- for( cmGlobalGenerator::TargetDependSet::const_iterator i = depends.begin();
+ for( OrderedTargetDependSet::const_iterator i = depends.begin();
i != depends.end(); ++i)
{
cmTarget* dt = *i;