Add the ability to set a build environment also for CMake projects.

Note: as for qt projects, this is also used for running. And we don't
use it for running cmake yet.
This commit is contained in:
dt
2009-05-26 15:22:11 +02:00
parent 19d3131ef6
commit 0bda19a099
12 changed files with 220 additions and 134 deletions

View File

@@ -82,8 +82,7 @@ QStringList CMakeRunConfiguration::commandLineArguments() const
ProjectExplorer::Environment CMakeRunConfiguration::environment() const
{
// TODO have a way for the user to setup the environment
return ProjectExplorer::Environment::systemEnvironment();
return project()->environment(project()->activeBuildConfiguration());
}
QString CMakeRunConfiguration::title() const