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

cmake --build . --target all instead of specific target

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 5.0.3
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Linux/Other display system, Windows

      Description

      Lets assume I cloned a big project with lots of libraries.

      The dependency graph is complex. 
      I want to run the unit tests of a library that many other libraries in this project depend on.

      • The step `cmake ..\build_dir` is done.
      • I would choose the test executable in the RUN menu and hit run.

      My expectation would be:
      qtcreator executes

      cmake --build . --target test_executable_name

      to build only this test executable and its dependencies.

      But instead qtcreator runs

      cmake --build . --target all

      And builds the whole project, which takes an hour or more  instead of a few seconds for the specific test executable.

       

       

        Attachments

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

          Activity

            People

            Assignee:
            cadam Cristian Adam
            Reporter:
            mein_user_name Marcel Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes