Re: Packaging with CMake
On 2008-10-06, Robin Cornelius <firstname.lastname@example.org> wrote:
> cmake does not have a proper clean target in the unix makefiles in
> generates, which is a pain. Or not one that cleans as you would fully
> expect. It does keep its working files in the current directory so a
> the way i have done this is to do something like :-
> for the main build :-
> mkdir build
> cd build
> cmake _DSOMEFLAGS:BOOL=true..............
> then the clean rule can just purge "build/"
> this produces working debs and keeps the orig.tar.gz clean too.
> This does seem a little dirty which makes me think i'm not quite doing
> it right though so if anyone has a better way to do this?, but it does
It is neither dirty or a pain, but much easier to work with. Building
out of source as much as possible is making cleaning up easier. And
cmake is designed this way.