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

Extra build steps or none executed when building target from CMake project tree

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.5.0, Qt Creator 4.9.2

    Description

      Qt Creator 4.5 allows to build targets from the context menu of the target's item in the context menu.

      Actual behaviour:

      This target is not run independently, but rather seems to replace the first enabled build step in the project configuration.

      • If all build steps are disabled, the requested target is not build at all.
      18:11:58: Running steps for project Mapper...
      18:11:58: Skipping disabled step Custom Process Step.
      18:11:58: Skipping disabled step CMake Build.
      18:11:58: Skipping disabled step CMake Build.
      18:11:58: Skipping disabled step Custom Process Step.
      18:11:58: Elapsed time: 00:00.
      • If multiple build steps are enabled, the second and all following enabled build steps are executed in addition to building the requested target.
      18:15:42: Running steps for project Mapper...
      18:15:42: Skipping disabled step Custom Process Step.
      18:15:42: Starting: "/***/bin/cmake" --build . --target translate-text-files
      ninja: no work to do.
      18:15:42: The process "/***/bin/cmake" exited normally.
      18:15:42: Skipping disabled step CMake Build.
      18:15:42: Starting: "/bin/echo" 'Hello World'
      Hello World
      18:15:42: The process "/bin/echo" exited normally.
      18:15:42: Elapsed time: 00:00.
      • For reproducing, it sufficient to add custom steps which execute `echo "Hello World"`.

      Expected behaviour

      The requested target is run independent of the configured regular build steps.

      18:19:24: Running steps for project Mapper...
      18:19:24: Starting: "/***/bin/cmake" --build . --target translate-text-files
      ninja: no work to do.
      18:19:24: The process "/***/bin/cmake" exited normally.
      18:19:24: Elapsed time: 00:00.

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            dg0yt Kai Pastor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes