Hi Hugh, <br><br>By design ExternalProject module will download and patch a project only one time. <br><br>Indeed, the ExternalProject wouldn't be able to apply a patch more than one time. It also doesn't have a way to detect if a patch has been applied.<br>
<br>In other word, you will have to clear the project so that download / patch steps could be run cleanly.<br><br>If you have specific workflow, you could run customized steps that could be able to detect if a patch has been applied, undo patch ... you would end up with some complicated logic.<br>
<br>A different approach could be to create a git repository with the original project and apply patch on the top of it. (If it applies for you, it could be worth looking at git-svn ...)<br><br>Hth<br>Jc<br><br><div class="gmail_quote">
On Sun, Jul 17, 2011 at 7:36 PM, Hugh Sorby <span dir="ltr"><<a href="mailto:h.sorby@auckland.ac.nz">h.sorby@auckland.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hello All,<br>
<br>
I am using external project to well build some external projects. I<br>
also patch these projects to play nice for me. For this I use the<br>
ExternalProject_Add PATCH_COMMAND. Right now I have two difficulties.<br>
<br>
1. I have to combine all my fixes into one patch. I would prefer to<br>
have a list of patches so that I can make it clearer to other developers<br>
what is going to be changed. This would make it easier to review<br>
patches and view particular mods.<br>
<br>
2. When I make changes to a patch and I recompile my external project,<br>
or the build tree holding the external project it doesn't rebuild the<br>
project. I would be happy with being able to force a clean and rebuild<br>
here for the external project effected.<br>
<br>
Has anybody resolved these issues?<br>
<br>
Cheers,<br>
Hugh.<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><br clear="all"><br>-- <br>+1 919 869 8849<br><br>