[CMake] cmake - preventing `make clean` from cleaning ExternalProject.

Alexander Neundorf a.neundorf-work at gmx.net
Tue Jun 7 04:10:20 EDT 2011


On Tuesday, June 07, 2011 04:41:03 AM jeeyoung kim wrote:
> I was wondering if there's some way to prevent make clean in cmake from
> re-building external dependencies. I'm using ExternalProject to build third
> party c++ libraries, and they do not have to be rebuilt even if I do make
> clean.
> 
> On the other hand, I might want to create a new rule, say, make
> really-clean, which even clears the dependencies. is there a good way to
> do this?

That really sounds like a useful thing.
Same thing for me.
Since I have only a few targets in my projects, it is still possible to simply 
make clean in the other directories.

I am not aware of a way to exclude the external projects from the normal 
clean. But this sounds like something useful.

Alex


More information about the CMake mailing list