Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
None
-
None
Description
Doing a find_package(Qt6 COMPONENTS Core) call can fail in various ways, and the error messages are not always clear.
This can happen due to various reasons, missing 3rd party deps, can't find tools, not using the qt generated toolchain file, not setting CMAKE_PREFIX_PATH, not setting CMAKE_FIND_ROOT_PATH, not setting QT_HOST_PATH, only setting Qt6_DIR, etc.
Improving the error messages so that users can more clearly understand what went wrong and how to fix it would be useful.
Attachments
Issue Links
- relates to
-
QTBUG-97615 CMake cannot find packages when only Qt6_DIR and not CMAKE_PREFIX_PATH is set
-
- Closed
-