Thanks guys, so it is not supported currently in cmake for whatever reasons.<div><br></div><div>>><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">That would require cmake to know about all source files which may or </span><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">may not be the case depending on your cmake rules</span></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">I am not quite familiar with how cmake works, but in premake, user who write new rules is responsible for removing the file he generated, ex:</font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">if _ACTION == 'clean'</font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"> -- remove the files you generated</font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">end</font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">Anyway, I've already got my answer, and out-of-place approach is actually enough for me.</font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><br></font></div><br><div class="gmail_quote">On Sun, Nov 4, 2012 at 12:43 AM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de" target="_blank">apaku@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class="im"><br>
On Sat, Nov 3, 2012 at 12:40 PM, lzprgmr <<a href="mailto:baiyanhuang@gmail.com">baiyanhuang@gmail.com</a>> wrote:<br>
> Is there any way to clean the generated build system files, like vs project<br>
> files, make files, it might be ok if generate out-of-place, but for in-place<br>
<br>
</div>Thats why cmake advertises out of source builds to be used all the time.<br>
<div class="im"><br>
> files, it is really a pain if you want to remove those files, especially<br>
> there are a lot of projects and directories. Ideally, I would expect there<br>
> is a command like:<br>
><br>
> cmake -clean<br>
<br>
</div>That would require cmake to know about all source files which may or<br>
may not be the case depending on your cmake rules. So no there is no<br>
such thing at the moment.<br>
<span class="HOEnZb"><font color="#888888"><br>
Andreas<br>
</font></span></blockquote></div><br>