ExternalProject should be suitable... in addition to specifying the SOURCE_DIR, also specify:<div>DOWNLOAD_COMMAND ""</div><div>BUILD_IN_SOURCE 1</div><div><br></div><div>In general, with ExternalProject_Add, if there is a build step that you are trying to suppress, set its corresponding _COMMAND to the empty string... Setting the command overrides any built in default behavior, and setting it to the empty string means "do nothing" for that step.</div>
<div><br></div><div>I'm not sure what would be doing the clean that you're talking about... Could you provide an example call to ExternalProject_Add that demonstrates this problem...?</div><div><br></div><div><br>
</div><div>Thanks,</div><div>David</div><div><br></div><br><div class="gmail_quote">On Wed, Dec 9, 2009 at 1:40 PM, Clinton Stimpson <span dir="ltr"><<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
So I have this project that is built using cmake, but as a subdirectory, I<br>
have source for another project that doesn't use cmake to build (it has its<br>
own visual studio plugins for building and must be an in-source build).<br>
<br>
Is the CMake 2.8 feature of ExternalProject suitable for this setup?<br>
We've tried using it, but it insists on specifying a way to download the<br>
source even though we've set SOURCE_DIR. And it sometimes deletes the source<br>
files in that subdirectory, so it appears to have its own "clean" instead of<br>
letting me specify one.<br>
<br>
If not, I guess I'll have to fall back to having a custom target.<br>
<br>
Thanks,<br>
Clint<br>
<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>