From cca7efd14602eccde55d6512e2a3ed693ce170be Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Mon, 7 Oct 2024 16:28:19 +0200 Subject: [PATCH] ProjectExplorer: Let the ProcessStep figure out relative paths The WorkingDir may contain macros that still need to be expanded so we need to tell it what we wan't as parent path. Change-Id: I7af8115196b70b5a02217d5709bf0a0cc532ce69 Reviewed-by: David Schulz --- src/plugins/projectexplorer/workspaceproject.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/projectexplorer/workspaceproject.cpp b/src/plugins/projectexplorer/workspaceproject.cpp index 90554b92dba..afa92713c44 100644 --- a/src/plugins/projectexplorer/workspaceproject.cpp +++ b/src/plugins/projectexplorer/workspaceproject.cpp @@ -464,9 +464,7 @@ public: FilePath wd = FilePath::fromUserInput(bs["workingDirectory"].toString()); if (wd.isEmpty()) wd = "%{ActiveProject:BuildConfig:Path}"; - else if (wd.isRelativePath()) - wd = project()->projectDirectory().resolvePath(wd); - step->setWorkingDirectory(wd); + step->setWorkingDirectory(wd, project()->projectDirectory()); steps->appendStep(step); } initializeExtraInfo(extraInfos);