diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2018-04-11 16:15:35 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2018-04-12 11:08:37 +0000 |
commit | 4ab7c19e848701b666a720d85bf5b63fa34a2ce6 (patch) | |
tree | b595ad7ef46bb5eae62278ed3692c12689402fa7 /src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp | |
parent | d7f431482db086652e3840cebfe92d5c5aa9fab6 (diff) |
Let users set a global default for whether to amend the run environment
... with the paths of libraries used at link time. The value can still
be set per run config.
Task-number: QTCREATORBUG-20240
Change-Id: Ibe2425e95d791f93af2fba85a64be8bde6b31f5a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp')
-rw-r--r-- | src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp b/src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp index 066d56abc0..5f931d7658 100644 --- a/src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp +++ b/src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp @@ -33,6 +33,8 @@ #include <projectexplorer/localenvironmentaspect.h> #include <projectexplorer/project.h> +#include <projectexplorer/projectexplorer.h> +#include <projectexplorer/projectexplorersettings.h> #include <projectexplorer/runconfigurationaspects.h> #include <projectexplorer/target.h> @@ -88,6 +90,8 @@ public: QbsRunConfiguration::QbsRunConfiguration(Target *target) : RunConfiguration(target, QBS_RC_PREFIX) { + m_usingLibraryPaths = ProjectExplorerPlugin::projectExplorerSettings().addLibraryPathsToRunEnv; + auto envAspect = new LocalEnvironmentAspect(this, [](RunConfiguration *rc, Environment &env) { static_cast<QbsRunConfiguration *>(rc)->addToBaseEnvironment(env); |