Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
1.0.0
-
None
-
-
3
-
da3adddfc (dev)
-
VScode Sprint 3
Description
Trying to use a Qt5 CMake kit results in a configuration error:
[cmake] CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.26/Modules/CMakeDetermineSystem.cmake:154 (message): [cmake] Could not find toolchain file: [cmake] d:/Qt/5.15.15/msvc2019_64/lib/cmake/Qt/qt.toolchain.cmake
The reason being that there is no toolchain file in Qt5. For Qt5, we must set CMAKE_PREFIX_PATH.
That begs the question whether we should set CMAKE_PREFIX_PATH instead of the toolchain file for Qt6 kits as well. Probably yes.