CMake: Add a way to provide options to CMake --build

Add a way to provide options to cmake --build in addition to the
already existing option to the build tool (separated by -- from the
cmake arguments).

I decided to have these two separate to ease upgrading from older
Creator versions.

Task-number: QTCREATORBUG-24088
Change-Id: If989f9942498055312ba0e11e7d80c2b5ece269d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tobias Hunger
2020-06-02 17:23:47 +02:00
parent bd4c9ea250
commit 10b63683fc
2 changed files with 33 additions and 5 deletions

View File

@@ -51,6 +51,8 @@ public:
bool buildsBuildTarget(const QString &target) const;
void setBuildTarget(const QString &target);
QString cmakeArguments() const;
void setCMakeArguments(const QString &list);
QString toolArguments() const;
void setToolArguments(const QString &list);
@@ -100,6 +102,7 @@ private:
QRegExp m_ninjaProgress;
QString m_ninjaProgressString;
QString m_buildTarget;
QString m_cmakeArguments;
QString m_toolArguments;
bool m_useNinja = false;
bool m_waiting = false;