[CMake] Re: Using FILE(REMOVE_RECURSE ...) on clean targets
Rodolfo Schulz de Lima
rodolfo at rodsoft.org
Tue Dec 18 14:33:32 EST 2007
Brandon Van Every wrote:
> 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.
I think you misunderstood what I meant. Then we do 'make clear', the
CMakeFiles/project.dir/cmake_clean.cmake gets executed. That's where the
FILE(REMOVE ...) command I'm talking about resides. This is created by
cmake during build configuration, but IMHO it should be
FILE(REMOVE_RECURSE ...) so that 'make clean' removes any directories
specified with CMAKE_ADDITIONAL_CLEAN_FILES property.
Regards,
rod
More information about the CMake
mailing list