- 
    
Bug
 - 
    Resolution: Done
 - 
    
P2: Important
 - 
    5.7
 - 
    None
 - 
    Linux
 
- 
        6583720aa4503fce16b44cce7b8d939058abf000
 
If configuring qt like this :
      perl init-repository --module-subset=qtbase,qtimageformats,qtsvg,qtwebsockets,qttranslations,qtrepotools,qtdeclarative
when attempting to use the built Qt from CMake, the following error arises :
CMake Error at /usr/local/Qt-5.7.0/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message): The imported target "Qt5::Core" references the file "/usr/local/Qt-5.7.0/bin/qdoc" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/local/Qt-5.7.0/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake" but not all the files it references. Call Stack (most recent call first): /usr/local/Qt-5.7.0/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:41 (_qt5_Core_check_file_exists) /usr/local/Qt-5.7.0/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:146 (include) /usr/local/Qt-5.7.0/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package) CMakeLists.txt:40 (find_package)
And indeed, there is no qdoc binary being built anywhere.
| For Gerrit Dashboard: QTBUG-54446 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 164291,2 | Revert "CMake: Add imported target for qdoc." | 5.7 | qt/qtbase | Status: MERGED | +2 | 0 |