[cmake-developers] [PATCH] if(FILE_IS_NEWER file1 file2) -> if(file1 FILE_IS_NEWER file2)
Brad King
brad.king at kitware.com
Mon Oct 23 13:38:33 EDT 2006
Alexander Neundorf wrote:
> Hi,
>
> the attached patch changes the syntax for if(FILE_IS_NEWER)
> from
> if(FILE_IS_NEWER file1 file2)
> to
> if(file1 FILE_IS_NEWER file2)
> which is much more natural and in line with the other if-options which take
> two arguments. Since this hasn't been in any release yet, this should still
> go in 2.4.4
While it hasn't been in a release it's been there for quite a while and
I've already suggested it to other users. Based on your patch I've
added the syntax
IF(file1 IS_NEWER_THAN file2)
-Brad
/cvsroot/CMake/CMake/Tests/StringFileTest/CMakeLists.txt,v <--
CMakeLists.txt
new revision: 1.18; previous revision: 1.17
/cvsroot/CMake/CMake/Source/cmIfCommand.cxx,v <-- cmIfCommand.cxx
new revision: 1.70; previous revision: 1.69
/cvsroot/CMake/CMake/Source/cmIfCommand.h,v <-- cmIfCommand.h
new revision: 1.38; previous revision: 1.37
More information about the cmake-developers
mailing list