summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-30 20:02:58 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-30 20:02:58 (GMT)
commit7e5c571cce1a0d5d4b9d8eadaf35b73f7a2b72ed (patch)
treefab5be97d8a5d5682304f0140fefad83abe02117 /Source/cmGlobalVisualStudioGenerator.h
parentcc8c4a3f4fdc92a40d0ae5def0a113f860d11a8f (diff)
downloadCMake-7e5c571cce1a0d5d4b9d8eadaf35b73f7a2b72ed.zip
CMake-7e5c571cce1a0d5d4b9d8eadaf35b73f7a2b72ed.tar.gz
CMake-7e5c571cce1a0d5d4b9d8eadaf35b73f7a2b72ed.tar.bz2
Move OrderedTargetDependSet into VS superclass
We move cmGlobalVisualStudio7Generator::OrderedTargetDependSet up to cmGlobalVisualStudioGenerator so it can be re-used for other VS versions. See issue #9568.
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.h')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.h b/Source/cmGlobalVisualStudioGenerator.h
index 601836d..c601cc4 100644
--- a/Source/cmGlobalVisualStudioGenerator.h
+++ b/Source/cmGlobalVisualStudioGenerator.h
@@ -74,6 +74,17 @@ protected:
virtual bool VSLinksDependencies() const { return true; }
virtual const char* GetIDEVersion() = 0;
+
+ struct TargetCompare
+ {
+ bool operator()(cmTarget const* l, cmTarget const* r) const;
+ };
+ class OrderedTargetDependSet: public std::multiset<cmTarget*, TargetCompare>
+ {
+ public:
+ OrderedTargetDependSet(cmGlobalGenerator::TargetDependSet const&);
+ };
+
private:
void FixUtilityDependsForTarget(cmTarget& target);
void CreateUtilityDependTarget(cmTarget& target);