Commit faab380c authored by Daniel Teske's avatar Daniel Teske

CMake: Show a error if the cached generator is incompatible

Task-number: QTCREATORBUG-8594
Change-Id: I20b2ed5b82f5003315e6f72346a11980ce0929ef
Reviewed-by: default avatarMatt McLin <>
Reviewed-by: default avatarDaniel Teske <>
parent 9926752d
......@@ -429,6 +429,9 @@ void CMakeRunPage::initWidgets()
m_generatorComboBox = new QComboBox(this);
fl->addRow(tr("Generator:"), m_generatorComboBox);
m_generatorExtraText = new QLabel(this);
m_runCMake = new QPushButton(this);
m_runCMake->setText(tr("Run CMake"));
connect(m_runCMake, SIGNAL(clicked()), this, SLOT(runCMake()));
......@@ -550,6 +553,15 @@ void CMakeRunPage::initializePage()
m_generatorComboBox->addItem(info.displayName(), qVariantFromValue(info));
if (!m_generatorComboBox->count()) {
m_generatorExtraText->setText(tr("The cached generator %1 is incompatible with the configured kits.")
} else {
} else {
// Note: We don't compare the actually cached generator to what is set in the buildconfiguration
......@@ -180,6 +180,7 @@ private:
Utils::QtcProcess *m_cmakeProcess;
Utils::FancyLineEdit *m_argumentsLineEdit;
QComboBox *m_generatorComboBox;
QLabel *m_generatorExtraText;
QLabel *m_descriptionLabel;
QLabel *m_exitCodeLabel;
bool m_haveCbpFile;
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