forked from qt-creator/qt-creator
ProjectExplorer: remove confusing function from Project
Change-Id: Ifaed5d8293dadd2ae3cfdab3b027434d4f8caa3e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user