aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp
diff options
context:
space:
mode:
authorTobias Hunger <[email protected]>2019-12-12 11:15:36 +0100
committerTobias Hunger <[email protected]>2019-12-12 14:55:17 +0000
commit0dbe6f8e3cf3371e27fd0e2d546cae0c2dcb6110 (patch)
tree62cef2fa424228df75a180bcee0554e1e7db9085 /src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp
parentf66aaf1aa9c134cde85e0b3eb479516947f1051e (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 <[email protected]>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp
index f0dc48a851b..cd5751f6604 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) {