summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-09-22 14:56:48 (GMT)
committerBrad King <brad.king@kitware.com>2008-09-22 14:56:48 (GMT)
commit4719984553a47d6304ff6d23050859172ad46366 (patch)
tree9aec0995efabb4911fd991298dd33b2d27b14e43 /Source/cmGlobalGenerator.cxx
parent924fae24cf997707455e687eae55b481008d98e6 (diff)
downloadCMake-4719984553a47d6304ff6d23050859172ad46366.zip
CMake-4719984553a47d6304ff6d23050859172ad46366.tar.gz
CMake-4719984553a47d6304ff6d23050859172ad46366.tar.bz2
ENH: Make dir content cache work during configure
Previously the cmGlobalGenerator::GetDirectoryContent method would work safely only during build system generation. These changes make it safe to use during each configure step by flushing it at the beginning.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index d7d6c9b..3552596 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -731,6 +731,7 @@ void cmGlobalGenerator::Configure()
this->LocalGeneratorToTargetMap.clear();
this->ProjectMap.clear();
this->RuleHashes.clear();
+ this->DirectoryContentMap.clear();
// start with this directory
cmLocalGenerator *lg = this->CreateLocalGenerator();