forked from qt-creator/qt-creator
Kits should affect all buildconfiguration environments
Not just qt4 and cmake but also generic projects. Change-Id: I4a7e86fb2dbf6c6e32b4da78953ad3199c554470 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "kitmanager.h"
|
||||
#include "target.h"
|
||||
#include "project.h"
|
||||
#include "kit.h"
|
||||
|
||||
#include <coreplugin/variablemanager.h>
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
@@ -203,6 +204,7 @@ Utils::Environment BuildConfiguration::baseEnvironment() const
|
||||
Utils::Environment result;
|
||||
if (useSystemEnvironment())
|
||||
result = Utils::Environment::systemEnvironment();
|
||||
target()->kit()->addToEnvironment(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user