Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-138599

.qmlls.ini has wrong buildDir

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.10.1, 6.10, 6.11.0 FF
    • 6.9, 6.10
    • QML: Tooling
    • None
    • 8ba50d5f3 (dev), ed94fefc0 (6.10)

      Consider the following CMake code

       

      cmake_minimum_required(VERSION 3.30)
      
      set(CMAKE_AUTOMOC ON)
      
      find_package(Qt6 REQUIRED COMPONENTS Qml)
      
      qt_add_qml_module(foo URI "org.kde.foo")

      The project is in "/home/nico/workspace/qml-output-test".

       

      Now create a build folder in /home/nico/workspace/qml-output-test/build

      and configure the project with -DQT_QML_GENERATE_QMLLS_INI=ON

      The generated .qmlls.ini file has buildDir="/home/nico", instead of the expected /home/nico/workspace/qml-output-test/build

        For Gerrit Dashboard: QTBUG-138599
        # Subject Branch Project Status CR V

            sami.shalayel Sami Shalayel
            nicolasfella Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes