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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers