diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-12-02 20:30:59 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-12-02 20:30:59 (GMT) |
commit | 27110975c2fb8e579ab85cc2313d0e243fb81d37 (patch) | |
tree | 06b8d0c0fa1d0105c57188a4cca5b6142abc9925 /Source/cmListFileCache.h | |
parent | 5d2f83dad56a5e393374630522259ea4ecb42c96 (diff) | |
download | CMake-27110975c2fb8e579ab85cc2313d0e243fb81d37.zip CMake-27110975c2fb8e579ab85cc2313d0e243fb81d37.tar.gz CMake-27110975c2fb8e579ab85cc2313d0e243fb81d37.tar.bz2 |
ENH: add PROJECT command if there is not one
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r-- | Source/cmListFileCache.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h index 1832234..2520eca 100644 --- a/Source/cmListFileCache.h +++ b/Source/cmListFileCache.h @@ -52,16 +52,18 @@ public: /** Return the cached version of the given file. * If the file is not already in the cache, a cache entry * will be made. If there is an error loading the file, - * NULL is returned. + * NULL is returned. If requireProjectCommand is true, + * then a PROJECT(Project) command will be added to the file + * if it does not have a PROJECT command in it. */ - cmListFile* GetFileCache(const char* path); + cmListFile* GetFileCache(const char* path, bool requireProjectCommand); //! Flush cache file out of cache. void FlushCache(const char* path); private: // Cache the file - bool CacheFile(const char* path); + bool CacheFile(const char* path, bool requireProjectCommand); // private data typedef std::map<cmStdString, cmListFile> ListFileMap; ListFileMap m_ListFileCache; // file name to ListFile map |