forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user