Commit 079448d3 authored by Tobias Hunger's avatar Tobias Hunger

CMake: Document arguments used to run cmake with

Just add a line of text with the cmake that is being run, the
arguments passed to it and the build directory. Mostly as a help
to debug.

Change-Id: I5ebcac83ddeadf1fc79391b92a83926bff2ea9b2
Reviewed-by: default avatarCristian Adam <cristian.adam@gmail.com>
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent fcb52c40
...@@ -560,8 +560,15 @@ void CMakeRunPage::runCMake() ...@@ -560,8 +560,15 @@ void CMakeRunPage::runCMake()
this, &CMakeRunPage::cmakeReadyReadStandardError); this, &CMakeRunPage::cmakeReadyReadStandardError);
connect(m_cmakeProcess, static_cast<void(QProcess::*)(int)>(&QProcess::finished), connect(m_cmakeProcess, static_cast<void(QProcess::*)(int)>(&QProcess::finished),
this, &CMakeRunPage::cmakeFinished); this, &CMakeRunPage::cmakeFinished);
QString arguments = m_argumentsLineEdit->text();
m_output->appendPlainText(tr("Running: '%1' with arguments '%2' in '%3'.\n")
.arg(cmake->cmakeExecutable().toUserOutput())
.arg(arguments)
.arg(QDir::toNativeSeparators(m_buildDirectory)));
cmakeManager->createXmlFile(m_cmakeProcess, cmake->cmakeExecutable().toString(), cmakeManager->createXmlFile(m_cmakeProcess, cmake->cmakeExecutable().toString(),
m_argumentsLineEdit->text(), m_cmakeWizard->sourceDirectory(), arguments, m_cmakeWizard->sourceDirectory(),
m_buildDirectory, env, m_buildDirectory, env,
QString::fromLatin1(generatorInfo.generatorArgument()), QString::fromLatin1(generatorInfo.generatorArgument()),
generatorInfo.preLoadCacheFileArgument()); generatorInfo.preLoadCacheFileArgument());
......
Markdown is supported
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