[CMake] Problem with CMAKE_AUTOMOC files not being regenerated or cleaned

Alexander Neundorf a.neundorf-work at gmx.net
Sun Apr 28 06:53:24 EDT 2013


On Sunday 28 April 2013, Glenn Coombs wrote:
> No, cleaning the project didn't remove that file.

Can you manually set the ADDITIONAL_MAKE_CLEAN_FILES directory property to 
some file and check whether this file is deleted when you clean ?

Something like

set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
                                    "${CMAKE_CURRENT_BINARY_DIR}/abc.txt" )
 

then just create such a file in the build dir, and clean.
It should be removed then.
If it is not, then this is the reason why clean doesn't clean automoc 
properly.

Alex


More information about the CMake mailing list