Commit c05e9347 authored by con's avatar con
Browse files

Fixes: - Make sure that we find make command for gdbmacros library.

Task:     - 244273
Details:  - We need to search in the path for it.
parent 6edae34a
......@@ -124,7 +124,15 @@ void GdbMacrosBuildStep::run(QFutureInterface<bool> & fi)
qmake.start(m_qmake, QStringList()<<"-spec"<<mkspec<<configarguments<<"");
qmake.start(qt4Project->qtVersion(m_buildConfiguration)->makeCommand(), makeArguments);
QString makeCmd = qt4Project->qtVersion(m_buildConfiguration)->makeCommand();
if (!value(m_buildConfiguration, "makeCmd").toString().isEmpty())
makeCmd = value(m_buildConfiguration, "makeCmd").toString();
if (!QFileInfo(makeCmd).isAbsolute()) {
// Try to detect command in environment
QString tmp = qt4Project->environment(m_buildConfiguration).searchInPath(makeCmd);
makeCmd = tmp;
qmake.start(makeCmd, makeArguments);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment