forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.3'
Conflicts: doc/qtcreator.qdoc qtcreator.pri Change-Id: I8b34546dccc031aeeeab03417e9bd3aa7b740472
This commit is contained in:
@@ -453,11 +453,20 @@ void CMakeRunPage::initializePage()
|
||||
|
||||
void CMakeRunPage::runCMake()
|
||||
{
|
||||
if (m_cmakeExecutable) {
|
||||
// We asked the user for the cmake executable
|
||||
m_cmakeWizard->cmakeManager()->setCMakeExecutable(m_cmakeExecutable->path());
|
||||
}
|
||||
|
||||
int index = m_generatorComboBox->currentIndex();
|
||||
|
||||
ProjectExplorer::ToolChain *tc = 0;
|
||||
if (index >= 0)
|
||||
tc = static_cast<ProjectExplorer::ToolChain *>(m_generatorComboBox->itemData(index).value<void *>());
|
||||
if (!tc) {
|
||||
m_output->appendPlainText(tr("No generator selected."));
|
||||
return;
|
||||
}
|
||||
|
||||
m_cmakeWizard->setToolChain(tc);
|
||||
|
||||
@@ -478,10 +487,7 @@ void CMakeRunPage::runCMake()
|
||||
Utils::Environment env = m_cmakeWizard->environment();
|
||||
tc->addToEnvironment(env);
|
||||
|
||||
if (m_cmakeExecutable) {
|
||||
// We asked the user for the cmake executable
|
||||
m_cmakeWizard->cmakeManager()->setCMakeExecutable(m_cmakeExecutable->path());
|
||||
}
|
||||
|
||||
|
||||
m_output->clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user