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.