MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0016103 | CMake | CMake | public | 2016-05-13 06:36 | 2016-06-10 14:31 |
Reporter | OregonGhost | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | OS | Windows | OS Version | 10 | |
Product Version | CMake 3.5.2 | ||||
Target Version | Fixed in Version | ||||
Summary | 0016103: AUTORCC will not regenerate qrc when a resource changes | ||||
Description | I am using CMake with Visual C++ (2010 & 2013) and Qt 5.4. My primary target has a qrc file listed as source. AUTOMOC, AUTORCC and AUTOUIC are ON. When the qrc file itself is changed, rcc is called. When a resource the qrc file links to is changed, rcc is not called. As a result, CMake happily builds an executable with old resources, unless the qrc has been changed. According to 0015074, this should work for some time now. It did not for me with CMake 3.2, which I was using until recently, nor with 3.5.2, which I have currently installed. | ||||
Steps To Reproduce | Relevant portions of CMakeLists.txt: set(CMAKE_AUTORCC ON) ... find_package(Qt5Core REQUIRED) ... set( my_sources ... my.qrc ) ... add_executable( my WIN32 ... ${my_sources} ) Example from my.qrc: <RCC> <qresource prefix="/Bullets"> <file alias="Blue">Resources/Tags/BulletBlue.png</file> </qresource> </RCC> => Change BulletBlue.png and qrc_my.cpp is NOT regenerated, nor recompiled. | ||||
Additional Information | Running on Windows 10, currently with Visual C++ 2013, but the problem also happens on Windows 7 and with Visual C++ 2010. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-05-13 06:36 | OregonGhost | New Issue | |||
2016-05-13 07:47 | OregonGhost | Note Added: 0041063 | |||
2016-05-13 07:48 | OregonGhost | Note Edited: 0041063 | bug_revision_view_page.php?bugnote_id=41063#r2109 | ||
2016-06-10 14:29 | Kitware Robot | Note Added: 0043003 | |||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|