See also the &quot;IS_NEWER_THAN&quot; clause of the IF command.<div><br></div><div><a href="http://www.cmake.org/cmake/help/cmake2.6docs.html#command:if">http://www.cmake.org/cmake/help/cmake2.6docs.html#command:if</a></div>
<div><br><br><div class="gmail_quote">On Fri, Sep 25, 2009 at 1:47 PM, James Bigler <span dir="ltr">&lt;<a href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Is there a way to test if one file is newer than another file?  Something along the lines if &quot;cmake -E compare_files&quot;, but for time stamps?<br><br>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&#39;t work due to the lack of configuration specific dependencies.<br>


<br>Ultimately, what I think I&#39;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.<br><font color="#888888"><br>
James<br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>