summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-25 20:31:07 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-25 20:31:07 (GMT)
commit6449089436d16406f35f1ee9aef33c07ca89785e (patch)
tree8886177e6b9e0e1fab6cde440fe97a1eb7064986 /Source/cmIfCommand.h
parentebf532b106fed4bb4c2993be43e3ec2a42573f6b (diff)
downloadCMake-6449089436d16406f35f1ee9aef33c07ca89785e.zip
CMake-6449089436d16406f35f1ee9aef33c07ca89785e.tar.gz
CMake-6449089436d16406f35f1ee9aef33c07ca89785e.tar.bz2
ENH: Patch from Alex for adding IF(FILE_IS_NEWER). I also added a test.
Diffstat (limited to 'Source/cmIfCommand.h')
-rw-r--r--Source/cmIfCommand.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h
index e49c21f..90cf1a0 100644
--- a/Source/cmIfCommand.h
+++ b/Source/cmIfCommand.h
@@ -128,6 +128,10 @@ public:
" IF(EXISTS directory-name)\n"
"True if the named file or directory exists. "
"Behavior is well-defined only for full paths.\n"
+ " IF(FILE_IS_NEWER file1 file2)\n"
+ "True if file1 is newer than file2 or if one of the two files "
+ "doesn't exist. "
+ "Behavior is well-defined only for full paths.\n"
" IF(IS_DIRECTORY directory-name)\n"
"True if the given name is a directory. "
"Behavior is well-defined only for full paths.\n"