summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 833b454..dc79604 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -257,7 +257,11 @@ class cmake
///! Debug the try compile stuff by not delelting the files
bool GetDebugTryCompile(){return m_DebugTryCompile;}
void DebugTryCompileOn(){m_DebugTryCompile = true;}
-
+
+ ///! Get the list of files written by CMake using FILE(WRITE / WRITE_FILE
+ void AddWrittenFile(const char* file);
+ bool HasWrittenFile(const char* file);
+
protected:
typedef cmGlobalGenerator* (*CreateGeneratorFunctionType)();
typedef std::map<cmStdString, CreateGeneratorFunctionType> RegisteredGeneratorsMap;
@@ -273,6 +277,8 @@ protected:
std::string m_cmStartDirectory;
std::string m_StartOutputDirectory;
+ std::set<cmStdString> m_WrittenFiles;
+
///! return true if the same cmake was used to make the cache.
bool CacheVersionMatches();
///! read in a cmake list file to initialize the cache