[cmake-developers] [CMake 0015419]: QtAutogen does not regenerate moc file when moc inputs change

Mantis Bug Tracker mantis at public.kitware.com
Wed Feb 25 16:26:36 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15419 
====================================================================== 
Reported By:                Stephen Kelly
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15419
Category:                   CMake
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-02-25 22:26 CET
Last Modified:              2015-02-25 22:26 CET
====================================================================== 
Summary:                    QtAutogen does not regenerate moc file when moc
inputs change
Description: 

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 (http://public.kitware.com/Bug/view.php?id=15074), 2014-09-17),
and the solution to this issue with the moc tool will be similar.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-02-25 22:26 Stephen Kelly  New Issue                                    
======================================================================



More information about the cmake-developers mailing list