[CMake] Problem with CMAKE_AUTOMOC files not being regenerated or cleaned
Glenn Coombs
glenn.coombs at gmail.com
Mon Apr 29 05:10:54 EDT 2013
I added these lines:
set_directory_properties(
PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
"${CMAKE_CURRENT_BINARY_DIR}/abc.txt"
)
# check the location where abc.txt is supposed to be deleted from
message("CURRENT_BINARY_DIR: ${CMAKE_CURRENT_BINARY_DIR}")
to the end of my CMakeLists.txt and then created abc.txt in the cmake build
directory. I can confirm that the abc.txt file was not deleted by a clean
solution. I tried this with Visual Studio 2012 and Visual Studio 2008
(both installs are the Express editions) and the results were identical.
--
Glenn
On 28 April 2013 11:53, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130429/c4db4b46/attachment.htm>
More information about the CMake
mailing list