diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2019-12-12 11:15:36 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2019-12-12 14:55:17 +0000 |
commit | 0dbe6f8e3cf3371e27fd0e2d546cae0c2dcb6110 (patch) | |
tree | 62cef2fa424228df75a180bcee0554e1e7db9085 /src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp | |
parent | f66aaf1aa9c134cde85e0b3eb479516947f1051e (diff) |
CMake: Add heuristics to set "Run in Terminal" flag
For CMake file-api, flag all applications not linking to "QtXGui"
as "Run in Terminal".
Task-number: QTCREATORBUG-21451
Change-Id: I29f086c546d3d8a9f56257e423602f787db42ccd
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp index f0dc48a851..cd5751f660 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp @@ -554,6 +554,7 @@ const QList<BuildTargetInfo> CMakeBuildSystem::appTargets() const bti.projectFilePath = ct.sourceDirectory.stringAppended("/"); bti.workingDirectory = ct.workingDirectory; bti.buildKey = ct.title; + bti.usesTerminal = !ct.linksToQtGui; // Workaround for QTCREATORBUG-19354: bti.runEnvModifier = [this](Environment &env, bool) { |