View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013317CMakeCMakepublic2012-06-19 05:592012-06-21 16:22
ReporterRolf Eike Beer 
Assigned ToAlex Neundorf 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product VersionCMake 2.8.8 
Target VersionFixed in Version 
Summary0013317: Generated moc files are not cleaned
DescriptionAfter "make clean" the automatically generated moc_*.cpp files are still around.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0029788)
Alex Neundorf (developer)
2012-06-20 17:00

But they are regenerated anyway, right ?
(0029790)
Rolf Eike Beer (developer)
2012-06-20 18:34

They are properly regenerated when something is touched (at least AFAICT).
(0029808)
Alex Neundorf (developer)
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.

 Issue History
Date Modified Username Field Change
2012-06-19 05:59 Rolf Eike Beer New Issue
2012-06-19 05:59 Rolf Eike Beer Status new => assigned
2012-06-19 05:59 Rolf Eike Beer Assigned To => Alex Neundorf
2012-06-20 17:00 Alex Neundorf Note Added: 0029788
2012-06-20 18:34 Rolf Eike Beer Note Added: 0029790
2012-06-21 16:22 Alex Neundorf Note Added: 0029808
2012-06-21 16:22 Alex Neundorf Status assigned => closed
2012-06-21 16:22 Alex Neundorf Resolution open => no change required


Copyright © 2000 - 2018 MantisBT Team