From f1e74ae018ec800670d3c27bf6b1a4a833b75188 Mon Sep 17 00:00:00 2001 From: Brad King <brad.king@kitware.com> Date: Wed, 21 Jan 2009 17:36:06 -0500 Subject: [PATCH] BUG: Fix VS IDE solution files order again The previous change to order projects in the VS IDE did not account for duplicate target names (such as ALL_BUILD and ZERO_CHECK) among the input set. While we suppress generation of the duplicate project entries, we need to use a multiset to store ordered duplicates. --- Source/cmGlobalVisualStudio7Generator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmGlobalVisualStudio7Generator.h b/Source/cmGlobalVisualStudio7Generator.h index 89698e4aa..a116fe955 100644 --- a/Source/cmGlobalVisualStudio7Generator.h +++ b/Source/cmGlobalVisualStudio7Generator.h @@ -119,7 +119,7 @@ protected: virtual void WriteSLNHeader(std::ostream& fout); virtual void AddPlatformDefinitions(cmMakefile* mf); - class OrderedTargetDependSet: public std::set<cmTarget*, TargetCompare> + class OrderedTargetDependSet: public std::multiset<cmTarget*, TargetCompare> { public: OrderedTargetDependSet(cmGlobalGenerator::TargetDependSet const&);