Details
-
User Story
-
Resolution: Done
-
P1: Critical
-
None
-
None
Description
While trying to port qtimageformats to CMake, if I don't specify a find_package(Qt5Widgets), the configuration process fails with a bunch of errors like:
CMake Error in src/plugins/imageformats/wbmp/CMakeLists.txt:
Error evaluating generator expression:
$<TARGET_FILE:Qt5::uic>
No target "Qt5::uic"
This is because we automatically enable "uic" autogen for all qt targets via qt_autogen_tools() function, unless the DISABLE_AUTOGEN_TOOLS option is specified.
We shouldn't have to specify that option in so many places though.
Attachments
For Gerrit Dashboard: QTBUG-75875 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
261994,7 | Change the default enabled AUTOGEN tools list to contain only moc | wip/cmake | qt/qtbase | Status: MERGED | +2 | 0 |
262548,3 | Reset main_module_tool_deps in QtPostProcess | wip/cmake | qt/qtbase | Status: MERGED | +2 | 0 |
262569,3 | Rerun pro2cmake on projects that use .ui files | wip/cmake | qt/qtbase | Status: MERGED | +2 | 0 |