Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 4.15.1
-
None
-
-
a0afd51f3 (master)
Description
In Projects tab > Build & Run settings > Run SettingsĀ > Deployment section, adding CMake build as a deploy step sometimes successfully shows a list of available targets (sometimes it doesn't) with pre-selected install target and a text field for extra CMake arguments.
The problem is, extra CMake arguments are appended to the end of the command line invocation, after --target install, so they are treated verbatim as targets names.
This CMake deployment should be reworked in two steps:
1. Don't append arguments after --target option, put them right before it.
2. Don't run --target install at all: there's a built-in --install command with --prefix and other good stuff.
https://cmake.org/cmake/help/latest/manual/cmake.1.html#install-a-project