forked from qt-creator/qt-creator
CMake: Document all arguments passed to cmake
Do not leave out -Csomething (set by the kit) or the generator used (set by the wizard). Change-Id: I41cfb935da2877deaa26ae84bfdd96948fa20763 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -147,8 +147,7 @@ bool CMakeManager::preferNinja()
|
||||
// sounds like a plan
|
||||
void CMakeManager::createXmlFile(Utils::QtcProcess *proc, const QString &executable,
|
||||
const QString &arguments, const QString &sourceDirectory,
|
||||
const QDir &buildDirectory, const Utils::Environment &env,
|
||||
const QString &generator, const QString &preloadCache)
|
||||
const QDir &buildDirectory, const Utils::Environment &env)
|
||||
{
|
||||
QString buildDirectoryPath = buildDirectory.absolutePath();
|
||||
buildDirectory.mkpath(buildDirectoryPath);
|
||||
@@ -160,9 +159,7 @@ void CMakeManager::createXmlFile(Utils::QtcProcess *proc, const QString &executa
|
||||
QString args;
|
||||
Utils::QtcProcess::addArg(&args, srcdir);
|
||||
Utils::QtcProcess::addArgs(&args, arguments);
|
||||
Utils::QtcProcess::addArg(&args, generator);
|
||||
if (!preloadCache.isEmpty())
|
||||
Utils::QtcProcess::addArg(&args, preloadCache);
|
||||
|
||||
proc->setCommand(executable, args);
|
||||
proc->start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user