cmTarget: use a hash_map for cmTargets typedef

This commit is contained in:
Ben Boeckel 2014-06-10 13:07:24 -04:00
parent bcb6dbc1cb
commit a9c9b66c27
1 changed files with 7 additions and 0 deletions

View File

@ -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> {};