<div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 4, 2012 at 4:45 AM, lzprgmr <span dir="ltr"><<a href="mailto:baiyanhuang@gmail.com" target="_blank">baiyanhuang@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks guys, so it is not supported currently in cmake for whatever reasons.<br></blockquote></div><br>It's not supported as a direct feature, to the best of my knowledge. <br><br>That said, it is technically possible to do - it just requires you to create your own system on top of CMake. The BRL-CAD project implements such a system. To see how, check out how we implement our "distclean" target - that command restores the source directory to pristine condition. Be warned - it's one of the more complex aspects of our build system and depends on a number of other customizations. If an out-of-source-dir solution is sufficient, I wouldn't advise complicating your build logic - we had most of the pieces in place for other reasons, so for us distclean was a fairly minimal step on top of them.<br>
</div>