Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
6.0
Description
Finding the qtbase modules fails when not using find_package(Qt6 ...)
Minimal test case:
cmake_minimum_required(VERSION 3.16) project(test) find_package(Qt6Core)
complains because /QtFeature.cmake cannot be found.
The generated Qt6CoreConfig.cmake contains: include(${_qt_6_config_cmake_dir}/QtFeature.cmake)
and _qt_6_config_cmake_dir is defined in Qt6Config.cmake which is not searched in this case.
Attachments
For Gerrit Dashboard: QTBUG-81672 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
307773,3 | CMake: Fix old style find_package(Qt6Foo) to work | dev | qt/qtbase | Status: MERGED | +2 | 0 |
310124,5 | CMake: Fix empty value of CMAKE_SIZEOF_VOID_P when looking for tools | dev | qt/qtbase | Status: MERGED | +2 | 0 |