summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-04-11 16:51:20 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-04-11 16:51:20 (GMT)
commit535acdc7a093c44c2d052247d0bfdb90e9c279a0 (patch)
tree80d5ba7eb2fd31f5f5fe26bdf1c17f125b18229e /Source/cmGlobalGenerator.h
parentacf33ba191156c65682166f31a01e5d184b482ed (diff)
downloadCMake-535acdc7a093c44c2d052247d0bfdb90e9c279a0.zip
CMake-535acdc7a093c44c2d052247d0bfdb90e9c279a0.tar.gz
CMake-535acdc7a093c44c2d052247d0bfdb90e9c279a0.tar.bz2
ENH: some performance optimizations
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r--Source/cmGlobalGenerator.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index d8e35ae..d3e3f30 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -175,6 +175,9 @@ public:
configuration. This is valid during generation only. */
cmTargetManifest const& GetTargetManifest() { return this->TargetManifest; }
+ void AddTarget(cmTargets::value_type &v) {
+ this->TotalTargets.insert(std::pair<cmStdString,cmTarget *>(v.first,&v.second));};
+
/** Support for multiple custom command outputs. */
virtual void CheckMultipleOutputs(cmMakefile* mf, bool verbose);
@@ -233,6 +236,9 @@ private:
// using relative paths is unsafe.
std::string RelativePathTopSource;
std::string RelativePathTopBinary;
+
+ // this is used to improve performance
+ std::map<cmStdString,cmTarget *> TotalTargets;
};
#endif