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/cmFileCommand.h | |
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/cmFileCommand.h')
-rw-r--r-- | Source/cmFileCommand.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmFileCommand.h b/Source/cmFileCommand.h index 60e25e8..5d00acf 100644 --- a/Source/cmFileCommand.h +++ b/Source/cmFileCommand.h @@ -81,6 +81,10 @@ public: "if it does not exists.\n" "APPEND will write a message into a file same as WRITE, except " "it will append it to the end of the file\n" + "NOTE: When using FILE WRITE and FILE APPEND, the produced file " + "cannot be used as an input to CMake (CONFIGURE_FILE, source file ...) " + "because it will lead to infinite loop. Use CONFIGURE_FILE if you " + "want to generate input files to CMake.\n" "READ will read the content of a file and store it into the " "variable.\n" "GLOB will generate a list of all files that match the globbing " |