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

Adding e.g. "sub-examples" make step to top-level project makes it impossible to build a specific sub-project without opening it separately

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • Qt Creator 4.10.0-beta1
    • Qt Creator 3.6.1
    • None
    • 66237a6e0401b0638e91c1fe3c8cefa7330db03d (qt-creator/qt-creator/master)

      1. Clone https://codereview.qt-project.org/#/admin/projects/qt/qtquickcontrols2
      2. Open the top-level qtquickcontrols2.pro file in Creator
      3. Add a "make sub-examples" build step (Qt is configured with -nomake examples)
      4. Try to build any sub-project (e.g. tests/auto) via the right click context menu in the project tree. You'll get this error:

      error: No rule to make target 'sub-examples'.  Stop.

      This means that you then need to either build that project from the command line or open the project separately (and configure it) just to build it.

      Instead, Creator should probably only apply the make steps to the project they're actually defined for: the top-level project. When building a sub-project in this manner, it could just use the default build command for that platform.

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

            kandeler Christian Kandeler
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes