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.