summaryrefslogtreecommitdiff
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-09-22 10:56:48 -0400
committerBrad King <brad.king@kitware.com>2008-09-22 10:56:48 -0400
commit4719984553a47d6304ff6d23050859172ad46366 (patch)
tree9aec0995efabb4911fd991298dd33b2d27b14e43 /Source/cmGlobalGenerator.h
parent924fae24cf997707455e687eae55b481008d98e6 (diff)
downloadcmake-4719984553a47d6304ff6d23050859172ad46366.tar.gz
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.h')
-rw-r--r--Source/cmGlobalGenerator.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index bc4e74bbfe..01aeffd4f3 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -213,12 +213,12 @@ public:
configuration. This is valid during generation only. */
cmTargetManifest const& GetTargetManifest() { return this->TargetManifest; }
- /** Get the content of a directory on disk including the target
- files to be generated. This may be called only during the
- generation step. It is intended for use only by
- cmComputeLinkInformation. */
+ /** Get the content of a directory. Directory listings are loaded
+ from disk at most once and cached. During the generation step
+ the content will include the target files to be built even if
+ they do not yet exist. */
std::set<cmStdString> const& GetDirectoryContent(std::string const& dir,
- bool needDisk);
+ bool needDisk = true);
void AddTarget(cmTargets::value_type &v);