- 
    Bug 
- 
    Resolution: Done
- 
    P2: Important 
- 
    6.2
- 
    None
Qt is configured with configure -prefix path -release
Top-level build including qtwebengine: cmake --build . --parallel
When build reaches the qtwebengine configuration phase it fails to find Qt6Targets.cmake and Qt6VersionlessTargets.cmake files:
CMake Error at /mnt/hdd/work/Qt/qt6-dev-prefix-release/qtbase/lib/cmake/Qt6/Qt6Config.cmake:33 (include):                                                                                                                                                                        
  include could not find requested file:                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                 
    /mnt/hdd/work/Qt/qt6-dev-prefix-release/qtbase/lib/cmake/Qt6/Qt6Targets.cmake                                                                                                                                                                                                
Call Stack (most recent call first):                                                                                                                                                                                                                                             
  CMakeLists.txt:23 (find_package)                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                                 
CMake Error at /mnt/hdd/work/Qt/qt6-dev-prefix-release/qtbase/lib/cmake/Qt6/Qt6Config.cmake:35 (include):                                                                                                                                                                        
  include could not find requested file:                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                 
    /mnt/hdd/work/Qt/qt6-dev-prefix-release/qtbase/lib/cmake/Qt6/Qt6VersionlessTargets.cmake                                                                                                                                                                                     
Call Stack (most recent call first):                                                                                                                                                                                                                                             
  CMakeLists.txt:23 (find_package)
I have also attached whole log of the configuration phase:  qtwebengine-cmake-configure.log 
 
These files are in qtbase/CMakeFiles/Export/lib/cmake/Qt6 and only these two are in that directory. With developer-build they are in qtbase/lib/cmake/Qt6.
- depends on
- 
                    QTBUG-95590 Rewrite cmake-gn intergration -         
- Closed
 
-         
- is duplicated by
- 
                    QTBUG-96201 WebEngine not building (missing pthread.h) -           
- Closed
 
-         
- 
                    QTBUG-95335 Configure failure during build step in top-level build -         
- Closed
 
-