diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-04-18 18:41:46 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-04-18 18:41:46 (GMT) |
commit | 55a71ba572c54dbb3485a76e9615c1c8bf688fd4 (patch) | |
tree | ac692b4ef198284cf7c0e9b65ab854f93e7f865a /Source/cmake.cxx | |
parent | af61b685839fae6af72ba4c4d42ebf39a7d1a324 (diff) | |
download | CMake-55a71ba572c54dbb3485a76e9615c1c8bf688fd4.zip CMake-55a71ba572c54dbb3485a76e9615c1c8bf688fd4.tar.gz CMake-55a71ba572c54dbb3485a76e9615c1c8bf688fd4.tar.bz2 |
ENH: Add check for infinite loops. Make sure that files written using WRITE_FILE and FILE WRITE are not used as input files. Fixes Bug #678 - WRITE_FILE and FILE(WRITE...) lead to infinite loops
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 5ce680e..a49559b 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1416,3 +1416,13 @@ void cmake::GetGeneratorDocumentation(std::vector<cmDocumentationEntry>& v) cmDocumentationEntry empty = {0,0,0}; v.push_back(empty); } + +void cmake::AddWrittenFile(const char* file) +{ + m_WrittenFiles.insert(file); +} + +bool cmake::HasWrittenFile(const char* file) +{ + return m_WrittenFiles.find(file) != m_WrittenFiles.end(); +} |