From d632b3eb4ff3181acc9d6b25a4bd44af206bd89d Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 3 Jun 2021 07:57:40 +0200 Subject: [PATCH] CMake: Use local builddir path when constructing cmakeCommand The command will be executed on the build device, from that perspective the builddir is local. Change-Id: I9b3bdf0333f2634caff352e8738019a86c09870c Reviewed-by: David Schulz --- src/plugins/cmakeprojectmanager/cmakebuildstep.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp index 42015dd72c1..5de90d18635 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp @@ -378,10 +378,10 @@ CommandLine CMakeBuildStep::cmakeCommand() const { CMakeTool *tool = CMakeKitAspect::cmakeTool(kit()); - Utils::CommandLine cmd(tool ? tool->cmakeExecutable() : Utils::FilePath(), {}); + CommandLine cmd(tool ? tool->cmakeExecutable() : FilePath(), {}); QString buildDirectory = "."; if (buildConfiguration()) - buildDirectory = buildConfiguration()->buildDirectory().toString(); + buildDirectory = buildConfiguration()->buildDirectory().path(); cmd.addArgs({"--build", buildDirectory}); cmd.addArg("--target");