ProjectExplorer: remove confusing function from Project

Change-Id: Ifaed5d8293dadd2ae3cfdab3b027434d4f8caa3e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
David Schulz
2024-05-02 14:39:12 +02:00
parent b7dff8b636
commit bf41545468
8 changed files with 14 additions and 27 deletions

View File

@@ -1593,9 +1593,8 @@ FilePath CMakeBuildConfiguration::shadowBuildDirectory(const FilePath &projectFi
return {};
const QString projectName = projectFilePath.parentDir().fileName();
const FilePath projectDir = Project::projectDirectory(projectFilePath);
FilePath buildPath = buildDirectoryFromTemplate(projectDir, projectFilePath, projectName, k,
bcName, buildType, "cmake");
FilePath buildPath = buildDirectoryFromTemplate(
projectFilePath.absolutePath(), projectFilePath, projectName, k, bcName, buildType, "cmake");
if (CMakeGeneratorKitAspect::isMultiConfigGenerator(k)) {
const QString path = buildPath.path();
@@ -1906,8 +1905,6 @@ CMakeBuildConfigurationFactory::CMakeBuildConfigurationFactory()
setBuildGenerator([](const Kit *k, const FilePath &projectPath, bool forSetup) {
QList<BuildInfo> result;
FilePath path = forSetup ? Project::projectDirectory(projectPath) : projectPath;
// Skip the default shadow build directories for build types if we have presets
const CMakeConfigItem presetItem = CMakeConfigurationKitAspect::cmakePresetConfigItem(k);
if (!presetItem.isNull())