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

Documentation suggests wrong template for "Default build directory" setting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • Qt Creator 18.0.0
    • Qt Creator 17.0.2
    • Documentation
    • None
    • 8f565877b (18.0)

      Documentation describes template for setting in Preferences > Build & Run > Default Build Properties. It looks like good default template it actually was in earlier versions which was lost after I upgraded Qt Creator and I wanted to restore.

      Suggested template for Default build directory is: 

      "build-%{ProjectName}-%{Kit:FileSystemName}-%{BuildConfig:Name}"

      Firstly, it uses %{ProjectName} variable which isn't expanded now (variables list doesn't contain it too).

      Secondly, such a directory should be placed at same directory level as project, not inside project tree (like it was earlier by default).

      Working template to restore earlier default is: 

      ../build-%{JS:"%{Project:Path}".split('/').pop()}-%{Asciify:%{Kit:FileSystemName}-%{BuildConfig:Name}}

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

            leenam Leena Miettinen
            artem_pisarenko Artem Pisarenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes