Sweet. Thanks! Missed that one after all these years.
James On Fri, Sep 25, 2009 at 11:53 AM, David Cole <[email protected]> wrote: > See also the "IS_NEWER_THAN" clause of the IF command. > http://www.cmake.org/cmake/help/cmake2.6docs.html#command:if > > > On Fri, Sep 25, 2009 at 1:47 PM, James Bigler <[email protected]>wrote: > >> Is there a way to test if one file is newer than another file? Something >> along the lines if "cmake -E compare_files", but for time stamps? >> >> I need to copy dlls into the binary directory, but I want to do it >> conservatively. Also I need different versions for Debug and Release, so >> add_custom_command doesn't work due to the lack of configuration specific >> dependencies. >> >> Ultimately, what I think I'll have to do is generate a script that takes >> the build configuration as a parameter and runs copy_if_different as a post >> build command for a given target. >> >> James >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the CMake FAQ at: >> http://www.cmake.org/Wiki/CMake_FAQ >> >> Follow this link to subscribe/unsubscribe: >> http://www.cmake.org/mailman/listinfo/cmake >> > >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
