MantisBT - CMake
View Issue Details
0013317CMakeCMakepublic2012-06-19 05:592012-06-21 16:22
Rolf Eike Beer 
Alex Neundorf 
normalminoralways
closedno change required 
CMake 2.8.8 
 
0013317: Generated moc files are not cleaned
After "make clean" the automatically generated moc_*.cpp files are still around.
No tags attached.
Issue History
2012-06-19 05:59Rolf Eike BeerNew Issue
2012-06-19 05:59Rolf Eike BeerStatusnew => assigned
2012-06-19 05:59Rolf Eike BeerAssigned To => Alex Neundorf
2012-06-20 17:00Alex NeundorfNote Added: 0029788
2012-06-20 18:34Rolf Eike BeerNote Added: 0029790
2012-06-21 16:22Alex NeundorfNote Added: 0029808
2012-06-21 16:22Alex NeundorfStatusassigned => closed
2012-06-21 16:22Alex NeundorfResolutionopen => no change required

Notes
(0029788)
Alex Neundorf   
2012-06-20 17:00   
But they are regenerated anyway, right ?
(0029790)
Rolf Eike Beer   
2012-06-20 18:34   
They are properly regenerated when something is touched (at least AFAICT).
(0029808)
Alex Neundorf   
2012-06-21 16:22   
Yes, I checked, it should be fine.
On make clean, the <target>_automoc.cpp file is removed.

When automoc runs, there is this code:
if (!cmsys::SystemTools::FileExists(this->OutMocCppFilename.c_str())
    || (this->OldMocDefinitionsStr != this->Join(this->MocDefinitions, ' ')))
    {
    this->GenerateAll = true;
    }

So when this file has been cleaned, all moc files for this target should be regenerated.

Please reopen this ticket if this is not the case.