- 
    
Suggestion
 - 
    Resolution: Unresolved
 - 
    
P4: Low
 - 
    None
 - 
    None
 - 
    None
 
When cross-compiling Qt, the tools are not built by default and instead they are searched for in a host Qt installation.
One can force cross-compilation of tools for the target device by specifying -DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON.
QTBUG-95099 describes a use case of searching for pre-existing tools in a host Qt installation even when doing a regular host / desktop build.
An extension of that would be to also force building of the tools in that situation, even  when using the tools of the pre-existing host Qt.
Currently that's not possible.
One way would be to generalize QT_BUILD_TOOLS_WHEN_CROSSCOMPILING to QT_FORCE_BUILD_TOOLS instead.
- duplicates
 - 
                    
QTBUG-99683 Make it possible to build the tools in a non-cross-compilation build when QT_FORCE_FIND_TOOLS is also set
-         
 - Closed
 
 -         
 
- relates to
 - 
                    
QTBUG-95099 [FTBFS] Qt6CoreToolsTargets.cmake not found with -DQT_FORCE_FIND_TOOLS=ON
-         
 - Closed
 
 -         
 
| For Gerrit Dashboard: QTBUG-97658 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 377610,6 | CMake: Fix forcing usage of host tools when doing a desktop build | dev | qt/qtbase | Status: MERGED | +2 | 0 | 
| 379128,2 | CMake: Fix forcing usage of host tools when doing a desktop build | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |