Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-25080

App wizards: Simplify generated CMakeLists.txt

    XMLWordPrintable

Details

    • User Story
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • None

    Description

      The current CMakeLists.txt files that are generated by the wizards try to work both for Qt 5 and Qt 6 versions. Unfortunately this leads to a lot of if()..else() blocks, and crute logic.

      It would be arguably cleaner to let the user select the target version first, and then generate a CMakeLists.txt file that is taylored towards Qt 5 or Qt 6. Or provide a qt5compat.cmake shim that allows to write a modern CMakeLists.txt file that also works with older Qt 5 versions.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              cadam Cristian Adam
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes