Sweet.  Thanks!<br><br>Missed that one after all these years.<br><br>James<br><br><div class="gmail_quote">On Fri, Sep 25, 2009 at 11:53 AM, David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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" target="_blank">http://www.cmake.org/cmake/help/cmake2.6docs.html#command:if</a></div>


<div><br><br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Sep 25, 2009 at 1:47 PM, James Bigler <span dir="ltr">&lt;<a href="mailto:jamesbigler@gmail.com" target="_blank">jamesbigler@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
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></div></div>_______________________________________________<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>
</blockquote></div><br>