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

Brad King brad.king at kitware.com
Fri Aug 25 16:36:40 EDT 2006


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

-Brad


More information about the cmake-developers mailing list