aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/incredibuild/cmakecommandbuilder.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2021-09-28 12:29:29 +0200
committerhjk <[email protected]>2021-09-29 10:52:15 +0000
commiteedf02e40f471fdef41a9f9fce0160e5681c3dc9 (patch)
treec8491aee6d86b46d269c314401c9a35835151731 /src/plugins/incredibuild/cmakecommandbuilder.cpp
parentba672d1334a308b82cd0047a7d5d4ad96ab5388a (diff)
Incredibuild: Use more FilePath in CommandBuilder
Change-Id: I31e2be7cbd8f5ac58db4bead1fa3266bb80df868 Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/incredibuild/cmakecommandbuilder.cpp')
-rw-r--r--src/plugins/incredibuild/cmakecommandbuilder.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/incredibuild/cmakecommandbuilder.cpp b/src/plugins/incredibuild/cmakecommandbuilder.cpp
index b505c4b5ef6..a158aa9798b 100644
--- a/src/plugins/incredibuild/cmakecommandbuilder.cpp
+++ b/src/plugins/incredibuild/cmakecommandbuilder.cpp
@@ -36,6 +36,7 @@
#include <QStandardPaths>
using namespace ProjectExplorer;
+using namespace Utils;
namespace IncrediBuild {
namespace Internal {
@@ -45,11 +46,11 @@ QList<Utils::Id> CMakeCommandBuilder::migratableSteps() const
return {CMakeProjectManager::Constants::CMAKE_BUILD_STEP_ID};
}
-QString CMakeCommandBuilder::defaultCommand() const
+FilePath CMakeCommandBuilder::defaultCommand() const
{
const QString defaultCMake = "cmake";
const QString cmake = QStandardPaths::findExecutable(defaultCMake);
- return cmake.isEmpty() ? defaultCMake : cmake;
+ return FilePath::fromString(cmake.isEmpty() ? defaultCMake : cmake);
}
QString CMakeCommandBuilder::defaultArguments() const