MantisBT - CMake
View Issue Details
0015419CMakeCMakepublic2015-02-25 16:262016-06-10 14:31
Stephen Kelly 
Kitware Robot 
normalminorhave not tried
closedmoved 
 
 
0015419: QtAutogen does not regenerate moc file when moc inputs change

There are two file-inputs to moc in Qt 5 - the C++ header file being moc'd, and the optional JSON metadata files referenced therein. CMake performs file timestamp comparison on the C++ header file during autogen, but does not do similar tracking for the JSON files.

CMake should parse the C++ header file for the Q_PLUGIN_METADATA macro FILE argument, and add the list of referenced JSON files to the generated AutogenInfo.cmake file. The contents of this list should then be file-timestamp-checked.

Similar logic for lists of input files affecting the tool input was added for qrc files in commit v3.2.0-rc1~480^2 (QtAutogen: Regenerate qrc files if their input changes (0015074), 2014-09-17), and the solution to this issue with the moc tool will be similar.
No tags attached.
related to 0015420closed Kitware Robot QtAutogen should track uic external inputs 
Issue History
2015-02-25 16:26Stephen KellyNew Issue
2015-02-25 16:48Stephen KellyRelationship addedrelated to 0015420
2016-06-10 14:29Kitware RobotNote Added: 0042720
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042720)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.