Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.0
Description
Origin is comment at https://codereview.qt-project.org/c/qt/qtbase/+/298509/10/qmake/CMakeLists.txt#255
If you look at the following failed qtremoteobjects integration
http://testresults.qt.io/coin/integration/qt/qtremoteobjects/tasks/web_qt_qtremoteobjects_1592323040002 which was done for PS2 of https://codereview.qt-project.org/c/qt/qtremoteobjects/+/304624/2
you can see that CMake fails to configure when building for iOS with the following messages:
agent:2020/06/16 16:00:23 build.go:253: -- Searching for tool 'Qt6::repc' in package Qt6RemoteObjectsTools. agent:2020/06/16 16:00:23 build.go:253: -- Qt6::repc was found at /Users/qt/work/install/host/bin/repc using package Qt6RemoteObjectsTools. agent:2020/06/16 16:00:23 build.go:253: CMake Error at /Users/qt/work/install/target/lib/cmake/Qt6/QtBuild.cmake:5030 (target_sources): agent:2020/06/16 16:00:23 build.go:253: Cannot specify sources for target "repc" which is not built by this agent:2020/06/16 16:00:23 build.go:253: project. agent:2020/06/16 16:00:23 build.go:253: Call Stack (most recent call first): agent:2020/06/16 16:00:23 build.go:253: tools/repc/CMakeLists.txt:37 (qt_process_qlalr)
qt_process_qlalr is one of the functions that didn't check if the target is an imported target and should do nothing, similar to qt_extend_target.
While that is addressed in https://codereview.qt-project.org/c/qt/qtbase/+/304656
the main issue remains that we shouldn't have to do this, and we can't do this for non qt_ prefixed functions.
We should instead introduce a function like qt_tool_will_be_built() and teach pro2cmake to use it and exit the add_subdirectory() call early in case it isn't being built.
Attachments
Issue Links
- is required for
-
QTBUG-95099 [FTBFS] Qt6CoreToolsTargets.cmake not found with -DQT_FORCE_FIND_TOOLS=ON
- Closed
For Gerrit Dashboard: QTBUG-85084 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
372465,2 | Skip unnecessary commands when cross-building tools | dev | qt/qtbase | Status: MERGED | +2 | 0 |
373364,3 | Skip unnecessary commands when cross-building tools | dev | qt/qtactiveqt | Status: MERGED | +2 | 0 |
373365,3 | Skip unnecessary commands when cross-building tools | dev | qt/qtconnectivity | Status: MERGED | +2 | 0 |
373366,3 | Skip unnecessary commands when cross-building tools | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
373367,1 | Skip unnecessary commands when cross-building tools | dev | qt/qtdoc | Status: ABANDONED | -1 | 0 |
373368,3 | Skip unnecessary commands when cross-building tools | dev | qt/qtopcua | Status: MERGED | +2 | 0 |
373369,3 | Skip unnecessary commands when cross-building tools | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
373370,3 | Skip unnecessary commands when cross-building tools | dev | qt/qtremoteobjects | Status: MERGED | +2 | 0 |
373371,3 | Skip unnecessary commands when cross-building tools | dev | qt/qtscxml | Status: MERGED | +2 | 0 |
373372,3 | Skip unnecessary commands when cross-building tools | dev | qt/qtserialbus | Status: MERGED | +2 | 0 |
373373,3 | Skip unnecessary commands when cross-building tools | dev | qt/qtshadertools | Status: MERGED | +2 | 0 |
373374,4 | Skip unnecessary commands when cross-building tools | dev | qt/qttools | Status: MERGED | +2 | 0 |
373375,4 | Skip unnecessary commands when cross-building tools | dev | qt/qtwayland | Status: MERGED | +2 | 0 |
373376,4 | Skip unnecessary commands when cross-building tools | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |