summaryrefslogtreecommitdiffstats
path: root/Source/cmWriteFileCommand.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-04-18 18:41:46 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-04-18 18:41:46 (GMT)
commit55a71ba572c54dbb3485a76e9615c1c8bf688fd4 (patch)
treeac692b4ef198284cf7c0e9b65ab854f93e7f865a /Source/cmWriteFileCommand.h
parentaf61b685839fae6af72ba4c4d42ebf39a7d1a324 (diff)
downloadCMake-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/cmWriteFileCommand.h')
-rw-r--r--Source/cmWriteFileCommand.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmWriteFileCommand.h b/Source/cmWriteFileCommand.h
index ef2561d..31e1687 100644
--- a/Source/cmWriteFileCommand.h
+++ b/Source/cmWriteFileCommand.h
@@ -67,7 +67,13 @@ public:
" WRITE_FILE(filename \"message to write\"... [APPEND])\n"
"The first argument is the file name, the rest of the arguments are "
"messages to write. If the argument APPEND is specified, then "
- "the message will be appended.";
+ "the message will be appended.\n"
+ "NOTE 1: FILE WRITE and FILE APPEND do exactly the same as this one "
+ "but add some more functionality.\n"
+ "NOTE 2: When using WRITE_FILE 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.";
}
cmTypeMacro(cmWriteFileCommand, cmCommand);