I added these lines:<br><br>set_directory_properties(<br>    PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES<br>    &quot;${CMAKE_CURRENT_BINARY_DIR}/abc.txt&quot;<br>)<br><br># check the location where abc.txt is supposed to be deleted from<br>
message(&quot;CURRENT_BINARY_DIR: ${CMAKE_CURRENT_BINARY_DIR}&quot;)<br><br>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.<br>
<br>--<br>Glenn<br><br><br><div class="gmail_quote">On 28 April 2013 11:53, Alexander Neundorf <span dir="ltr">&lt;<a href="mailto:a.neundorf-work@gmx.net" target="_blank">a.neundorf-work@gmx.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sunday 28 April 2013, Glenn Coombs wrote:<br>
&gt; No, cleaning the project didn&#39;t remove that file.<br>
<br>
</div>Can you manually set the ADDITIONAL_MAKE_CLEAN_FILES directory property to<br>
some file and check whether this file is deleted when you clean ?<br>
<br>
Something like<br>
<br>
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES<br>
                                    &quot;${CMAKE_CURRENT_BINARY_DIR}/abc.txt&quot; )<br>
<br>
<br>
then just create such a file in the build dir, and clean.<br>
It should be removed then.<br>
If it is not, then this is the reason why clean doesn&#39;t clean automoc<br>
properly.<br>
<br>
Alex<br>
</blockquote></div><br>