forked from qt-creator/qt-creator
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: Cristian Adam <cristian.adam@gmail.com> Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -560,8 +560,15 @@ void CMakeRunPage::runCMake()
|
||||
this, &CMakeRunPage::cmakeReadyReadStandardError);
|
||||
connect(m_cmakeProcess, static_cast<void(QProcess::*)(int)>(&QProcess::finished),
|
||||
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(),
|
||||
m_argumentsLineEdit->text(), m_cmakeWizard->sourceDirectory(),
|
||||
arguments, m_cmakeWizard->sourceDirectory(),
|
||||
m_buildDirectory, env,
|
||||
QString::fromLatin1(generatorInfo.generatorArgument()),
|
||||
generatorInfo.preLoadCacheFileArgument());
|
||||
|
Reference in New Issue
Block a user