[CMake] Re: Using FILE(REMOVE_RECURSE ...) on clean targets

Brandon Van Every bvanevery at gmail.com
Tue Dec 18 14:28:24 EST 2007


On Dec 18, 2007 1:55 PM, Rodolfo Schulz de Lima <rodolfo at rodsoft.org> wrote:
> Brandon Van Every wrote:
>
> > I thought REMOVE_RECURSE was a straightforward unconditional nuke.  I
> > don't see that cleanliness has anything to do with it.
>
> Well, if I want to clean (remove) a directory, I'd expect it to be
> removed regardless if it contains subdirectories.

FILE commands are performed at configuration time.  They don't have
any relevance to actions performed at build time.  Not unless you've
wrapped them up in a CMake script and issued an ADD_CUSTOM_COMMAND of
the form COMMAND ${CMAKE_COMMAND} -P myscript.cmake.


Cheers,
Brandon Van Every


More information about the CMake mailing list