Automoc duplicates some moc_ files in the <project>_automoc.cpp file.
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When scanning C++ header files for automoc CMake will duplicate header files that have a .H extension instead of a .h.
Attached files from #13572 (closed) with someclass.h renamed to someclass.H.
First run (no changes)
2> Description: Automoc for target bugtest
2> AUTOMOC: Checking D:/tmp/automoc_13572/someclass.cpp
2> AUTOMOC: Checking D:/tmp/automoc_13572/main.cpp
2> AUTOMOC: Checking D:/tmp/automoc_13572/someclass.h
bugtest_automoc.cpp
/* This file is autogenerated, do not edit*/
#include "moc_someclass.cpp"
Second run (after rename)
2> Description: Automoc for target bugtest
2> AUTOMOC: Checking D:/tmp/automoc_13572/someclass.cpp
2> AUTOMOC: Checking D:/tmp/automoc_13572/main.cpp
2> AUTOMOC: Checking D:/tmp/automoc_13572/someclass.H
2> AUTOMOC: Checking D:/tmp/automoc_13572/someclass.h
bugtest_automoc.cpp
/* This file is autogenerated, do not edit*/
#include "moc_someclass.cpp"
#include "moc_someclass.cpp"
See automoc_14489.zip.