summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-06-10 13:07:24 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2014-07-17 11:17:52 -0400
commita9c9b66c272d1d63918c1a5040c63d6cb169be91 (patch)
tree6906da3bb69db5033da8340162452779df4259cc /Source
parentbcb6dbc1cb0bfeb0627c0b48ced41beea9d4c51a (diff)
downloadcmake-a9c9b66c272d1d63918c1a5040c63d6cb169be91.tar.gz
cmTarget: use a hash_map for cmTargets typedef
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 400544348a..9064eece9b 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -18,6 +18,9 @@
#include "cmListFileCache.h"
#include <cmsys/auto_ptr.hxx>
+#if defined(CMAKE_BUILD_WITH_CMAKE)
+#include <cmsys/hash_map.hxx>
+#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<std::string,cmTarget> cmTargets;
+#else
typedef std::map<std::string,cmTarget> cmTargets;
+#endif
class cmTargetSet: public std::set<std::string> {};
class cmTargetManifest: public std::map<std::string, cmTargetSet> {};