[CMake] Possible to clean files of one target library only?

Tyler Roscoe tyler at cryptio.net
Wed Aug 19 14:02:40 EDT 2009


On Wed, Aug 19, 2009 at 11:54:18AM -0600, Timothy M. Shead wrote:
> If you are using CMake to generate makefiles, you can run "make clean" 
> in a subdirectory of your build tree, and make will only remove the 
> files for that directory - you can use this to do library-specific 
> cleaning, provided that you've organized your sources so each library 
> has its own directory.

I do not see this behavior. make clean gets rid of object files and
libraries for the project where I run "make clean" and for all that
project's dependencies. All my projects have their own source and binary
directories.

tyler


More information about the CMake mailing list