I select "Clean Solution" from the Build menu which is a complete clean. The output looks like this:<br><br>1>------ Skipped Clean: Project: INSTALL, Configuration: Debug Win32 ------<br>1>Project not selected to build for this solution configuration <br>
2>------ Clean started: Project: ALL_BUILD, Configuration: Debug Win32 ------<br>3>------ Clean started: Project: yuv_player, Configuration: Debug Win32 ------<br>4>------ Clean started: Project: yuv_player_automoc, Configuration: Debug Win32 ------<br>
5>------ Clean started: Project: ZERO_CHECK, Configuration: Debug Win32 ------<br>========== Clean: 4 succeeded, 0 failed, 1 skipped ==========<br><br>The yuv_player_automoc project looks like it is being cleaned but the associated moc_*.cpp and yuv_player_automoc.cpp files are never deleted. After doing a "Clean Solution" and manually deleting the yuv_player_automoc.cpp file a build works as expected:<br>
<br>1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------<br>2>------ Build started: Project: yuv_player_automoc, Configuration: Debug Win32 ------<br>1> Checking Build System<br>2> Automoc for target yuv_player<br>
1> CMake does not need to re-run because C:/data/perforceCheckouts/sim/tools/yuvplayer/DEV/glenn.coombs/cmake/CMakeFiles/generate.stamp is up-to-date.<br>2> Generating moc_ctrlBasic.cpp<br>2> Generating moc_ctrlmenu.cpp<br>
2> Generating moc_infoWin.cpp<br>2> Generating moc_imageDisplay.cpp<br>2> Generating moc_imageDisplayGL.cpp<br>2> Generating moc_imageDisplayQt.cpp<br>2> Generating moc_multiWindow.cpp<br>2> Generating moc_videoGeneric.cpp<br>
...<br><br>with the moc_*.cpp files being regenerated. If I don't manually delete the yuv_player_automoc.cpp file then the moc_*.cpp files are never regenerated even if they are out of date compared to the header files they are generated from.<br>
<br>--<br>Glenn<br><br><br><div class="gmail_quote">On 29 April 2013 17:15, Alexander Neundorf <span dir="ltr"><<a href="mailto:a.neundorf-work@gmx.net" target="_blank">a.neundorf-work@gmx.net</a>></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 Monday 29 April 2013, Glenn Coombs wrote:<br>
> I added these lines:<br>
><br>
> set_directory_properties(<br>
> PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES<br>
> "${CMAKE_CURRENT_BINARY_DIR}/abc.txt"<br>
> )<br>
><br>
> # check the location where abc.txt is supposed to be deleted from<br>
> message("CURRENT_BINARY_DIR: ${CMAKE_CURRENT_BINARY_DIR}")<br>
><br>
> to the end of my CMakeLists.txt and then created abc.txt in the cmake build<br>
> directory. I can confirm that the abc.txt file was not deleted by a clean<br>
> solution. I tried this with Visual Studio 2012 and Visual Studio 2008<br>
> (both installs are the Express editions) and the results were identical.<br>
<br>
</div>I don't have Windows here so this is kind of hard for me...<br>
Did you do a "complete" clean or just a clean of some part of the whole<br>
project ?<br>
<br>
Alex<br>
</blockquote></div><br>