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

qmake2cmake doesn't convert the variable definition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • None
    • 6.4.2
    • None
    • Ubuntu 22.0.4
    • Linux/Wayland
    • 38aa9205d (dev), 28f9e0c8e (dev)

      I executed 

      qmake2cmake ./ghQmlDemo4115.pro --min-qt-version 6.4

      and CMakeLists.txt was generated.

      However, when I compiled the app, it said it couldn't find some headers.

      I checked the CMakeLists.txt and found out that the variable defined and used for path in .pro was not defined in CMakeLists.txt and therefore not used in the path, which leads to the wrong include path in CMakeLists.txt and the app didn't build.

       

        1. image-2023-02-17-16-45-14-308.png
          820 kB
          Mikio Hirai
        2. ghQmlDemo4115.pro
          4 kB
          Mikio Hirai
        3. CMakeLists.txt
          6 kB
          Mikio Hirai
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jbornema Joerg Bornemann
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes