[CMake] Re: ADDITIONAL_MAKE_CLEAN_FILES --> FILE(REMOVE ..)

Brad King brad.king at kitware.com
Wed Aug 23 17:15:10 EDT 2006


Stephen Adler wrote:
> It looks to me like the
> double quotes is canceling out glob'ness of *~.
[snip]
>> FILE(REMOVE
>> "core"
>> "core*"
>> "*~"

There is no globbing here.  The clean code is a CMake script, not a
shell script.  The make clean step is meant to clean files specifically
created by the build or specified explicitly by CMakeLists.txt file
code.  When doing out-of-source builds (which are strongly suggested)
having a clean step that removes editor cruft from the source tree does
not make sense anyway.

If you really want to do this you can create your own custom target that
runs a script to glob and remove the files.

-Brad


More information about the CMake mailing list