Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODEEXT-56

Qt5 CMake kits are faulty

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 1.0.0
    • 1.0.0
    • General
    • None
    • All
    • 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.

      Attachments

        For Gerrit Dashboard: VSCODEEXT-56
        # Subject Branch Project Status CR V

        Activity

          People

            sergkryvonos Serg Kryvonos
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes