[CMake] How clean generated build system files
lzprgmr
baiyanhuang at gmail.com
Sun Nov 4 04:45:38 EST 2012
Thanks guys, so it is not supported currently in cmake for whatever reasons.
>>That would require cmake to know about all source files which may or may
not be the case depending on your cmake rules
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:
if _ACTION == 'clean'
-- remove the files you generated
end
Anyway, I've already got my answer, and out-of-place approach is actually
enough for me.
On Sun, Nov 4, 2012 at 12:43 AM, Andreas Pakulat <apaku at gmx.de> wrote:
> Hi,
>
> On Sat, Nov 3, 2012 at 12:40 PM, lzprgmr <baiyanhuang at gmail.com> wrote:
> > Is there any way to clean the generated build system files, like vs
> project
> > files, make files, it might be ok if generate out-of-place, but for
> in-place
>
> Thats why cmake advertises out of source builds to be used all the time.
>
> > files, it is really a pain if you want to remove those files, especially
> > there are a lot of projects and directories. Ideally, I would expect
> there
> > is a command like:
> >
> > cmake -clean
>
> That would require cmake to know about all source files which may or
> may not be the case depending on your cmake rules. So no there is no
> such thing at the moment.
>
> Andreas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121104/7a079c68/attachment-0001.htm>
More information about the CMake
mailing list