Răsfoiți Sursa

Merge topic 'dev/target-fastpaths'

a9c9b66c cmTarget: use a hash_map for cmTargets typedef
bcb6dbc1 cmTarget: help the optimizer a bit
679f3dee cmTarget: use hash_set for sets of strings
23d6520d cmTarget: Allow caching of empty genex expansions
cd54f1db cmTarget: Only copy GenEx expansions when necessary
b75fc0e1 cmTarget: Don't set properties on custom targets
66076915 cmTarget: Use static strings for special property names
cebefa71 cmTarget: Sort special property checks
97ce676e cmTarget: Fast path for regular properties
4cfa918a cmTarget: Factor out common code
85242b7d cmTarget: Use else/if trees rather than an if tree
Brad King 11 ani în urmă
părinte
comite
36a8184d40
2 a modificat fișierele cu 314 adăugiri și 307 ștergeri
  1. 307 307
      Source/cmTarget.cxx
  2. 7 0
      Source/cmTarget.h

Fișier diff suprimat deoarece este prea mare
+ 307 - 307
Source/cmTarget.cxx


+ 7 - 0
Source/cmTarget.h

@@ -18,6 +18,9 @@
 #include "cmListFileCache.h"
 #include "cmListFileCache.h"
 
 
 #include <cmsys/auto_ptr.hxx>
 #include <cmsys/auto_ptr.hxx>
+#if defined(CMAKE_BUILD_WITH_CMAKE)
+#include <cmsys/hash_map.hxx>
+#endif
 
 
 #define CM_FOR_EACH_TARGET_POLICY(F) \
 #define CM_FOR_EACH_TARGET_POLICY(F) \
   F(CMP0003) \
   F(CMP0003) \
@@ -844,7 +847,11 @@ private:
   mutable bool LinkImplementationLanguageIsContextDependent;
   mutable bool LinkImplementationLanguageIsContextDependent;
 };
 };
 
 
+#ifdef CMAKE_BUILD_WITH_CMAKE
+typedef cmsys::hash_map<std::string,cmTarget> cmTargets;
+#else
 typedef std::map<std::string,cmTarget> cmTargets;
 typedef std::map<std::string,cmTarget> cmTargets;
+#endif
 
 
 class cmTargetSet: public std::set<std::string> {};
 class cmTargetSet: public std::set<std::string> {};
 class cmTargetManifest: public std::map<std::string, cmTargetSet> {};
 class cmTargetManifest: public std::map<std::string, cmTargetSet> {};

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff