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:
Daniel Teske
2012-10-16 16:19:40 +02:00
parent 03a68e38b6
commit c3190f6e7f
3 changed files with 2 additions and 2 deletions

View File

@@ -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;
}