[cmake-developers] [PATCH] add FILE_IS_NEWER to IF()

Alexander Neundorf neundorf at kde.org
Fri Aug 25 16:58:35 EDT 2006


On Friday 25 August 2006 22:36, you wrote:
> Alexander Neundorf wrote:
> > the attached patch adds
> > IF (FILE_IS_NEWER file1 file2)
> > which returns true if file1 is newer than file2 or if one of the two
> > files doesn't exist.
> >
> > I think I will need this for instance to for optimizing KDE4_AUTOMOC.
>
> Thanks, I've applied it and added a test:
>
> /cvsroot/CMake/CMake/Source/cmIfCommand.cxx,v  <--  cmIfCommand.cxx
> new revision: 1.67; previous revision: 1.66
> /cvsroot/CMake/CMake/Source/cmIfCommand.h,v  <--  cmIfCommand.h
> new revision: 1.36; previous revision: 1.35
> /cvsroot/CMake/CMake/Tests/StringFileTest/CMakeLists.txt,v  <--
> CMakeLists.txt
> new revision: 1.16; previous revision: 1.15

Cool, thanks :-)
Is the name "FILE_IS_NEWER" actually ok or should it be better 
"IS_FILE_NEWER" ?

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net



More information about the cmake-developers mailing list