forked from qt-creator/qt-creator
CMake: Do not store kit cmake configuration in BuildConfiguration
Change-Id: Ia45c03f42083af0871b12351c98092a2e7887158 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -265,7 +265,6 @@ void CMakeBuildConfiguration::setCurrentCMakeConfiguration(const QList<ConfigMod
|
||||
return ni;
|
||||
});
|
||||
|
||||
// There is a buildDirManager, so there must also be an active BC:
|
||||
const CMakeConfig config = cmakeConfiguration() + newConfig;
|
||||
setCMakeConfiguration(config);
|
||||
|
||||
@@ -316,7 +315,8 @@ void CMakeBuildConfiguration::setCMakeConfiguration(const CMakeConfig &config)
|
||||
|
||||
CMakeConfig CMakeBuildConfiguration::cmakeConfiguration() const
|
||||
{
|
||||
return m_configuration;
|
||||
return removeDuplicates(CMakeConfigurationKitInformation::configuration(target()->kit())
|
||||
+ m_configuration);
|
||||
}
|
||||
|
||||
void CMakeBuildConfiguration::setError(const QString &message)
|
||||
@@ -497,7 +497,6 @@ CMakeBuildInfo *CMakeBuildConfigurationFactory::createBuildInfo(const ProjectExp
|
||||
auto info = new CMakeBuildInfo(this);
|
||||
info->kitId = k->id();
|
||||
info->sourceDirectory = sourceDir;
|
||||
info->configuration = CMakeConfigurationKitInformation::configuration(k);
|
||||
|
||||
CMakeConfigItem buildTypeItem;
|
||||
switch (buildType) {
|
||||
|
||||
Reference in New Issue
Block a user