diff --git a/src/plugins/mesonprojectmanager/exewrappers/mesonwrapper.h b/src/plugins/mesonprojectmanager/exewrappers/mesonwrapper.h index 578010b15e5..c6dd5e9ec7b 100644 --- a/src/plugins/mesonprojectmanager/exewrappers/mesonwrapper.h +++ b/src/plugins/mesonprojectmanager/exewrappers/mesonwrapper.h @@ -32,10 +32,10 @@ #include #include #include +#include #include #include -#include #include #include @@ -57,9 +57,10 @@ bool containsFiles(const QString &path, const File_t &file, const T &...files) inline bool run_meson(const Command &command, QIODevice *output = nullptr) { - QProcess process; - process.setWorkingDirectory(command.workDir().toString()); - process.start(command.executable().toString(), command.arguments()); + Utils::QtcProcess process; + process.setWorkingDirectory(command.workDir()); + process.setCommand(command.cmdLine()); + process.start(); if (!process.waitForFinished()) return false; if (output) {