[CMake] Clen-up pre-built software
Hendrik Sattler
post at hendrik-sattler.de
Tue Nov 22 05:53:21 EST 2011
Am 22.11.2011 11:42, schrieb t m:
> Hi Community,
>
> In the large project we a having periodic taks which build a couple
> of
> projects and store the result of the build in one specific place.
> Once it's build the rest of the team can use this artifacts becouse
> those are exported by using of export(TARGETS ...)
>
> Since the others refer only to the targets I would like to clean-up
> the common builds from optional artifacts in order to save some disk
> space.
> I guess the objects could be removed. The problem is that "make
> clean"
> will clean also executables and libraries, so it's not an option for
> me.
>
> 1) Is there any way to get all objects files as a list, so I can
> remove them in the loop ?
> 2) Is there any other way to cope with this clean-up ?
>
> Looking for hints.
Make different trees for build and export (aka installation to a
specific location to be used by others). Then you can easily delete the
build tree.
HS
More information about the CMake
mailing list