From a9c9b66c272d1d63918c1a5040c63d6cb169be91 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 10 Jun 2014 13:07:24 -0400 Subject: cmTarget: use a hash_map for cmTargets typedef --- Source/cmTarget.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 4005443..9064eec 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -18,6 +18,9 @@ #include "cmListFileCache.h" #include +#if defined(CMAKE_BUILD_WITH_CMAKE) +#include +#endif #define CM_FOR_EACH_TARGET_POLICY(F) \ F(CMP0003) \ @@ -831,7 +834,11 @@ private: mutable bool LinkImplementationLanguageIsContextDependent; }; +#ifdef CMAKE_BUILD_WITH_CMAKE +typedef cmsys::hash_map cmTargets; +#else typedef std::map cmTargets; +#endif class cmTargetSet: public std::set {}; class cmTargetManifest: public std::map {}; -- cgit v0.12