summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/FirstConfigure.h
diff options
context:
space:
mode:
authorCode Smith <codesmith512@gmail.com>2020-02-05 02:34:35 (GMT)
committerBrad King <brad.king@kitware.com>2020-02-06 16:59:08 (GMT)
commit9a71fa46e7772af52f293ba32f57097f56116b20 (patch)
tree8e16dc69931fec8270b6ddc350b7e2c452c37b7b /Source/QtDialog/FirstConfigure.h
parentb49e5344e790507b0eebc4768d6f338d30138514 (diff)
downloadCMake-9a71fa46e7772af52f293ba32f57097f56116b20.zip
CMake-9a71fa46e7772af52f293ba32f57097f56116b20.tar.gz
CMake-9a71fa46e7772af52f293ba32f57097f56116b20.tar.bz2
cmake-gui: set generator field defaults from environment
Fixes: #20251
Diffstat (limited to 'Source/QtDialog/FirstConfigure.h')
-rw-r--r--Source/QtDialog/FirstConfigure.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/QtDialog/FirstConfigure.h b/Source/QtDialog/FirstConfigure.h
index d1db5bf..c26f489 100644
--- a/Source/QtDialog/FirstConfigure.h
+++ b/Source/QtDialog/FirstConfigure.h
@@ -29,7 +29,8 @@ class StartCompilerSetup : public QWizardPage
{
Q_OBJECT
public:
- StartCompilerSetup(QWidget* p);
+ StartCompilerSetup(QString defaultGeneratorPlatform,
+ QString defaultGeneratorToolset, QWidget* p);
~StartCompilerSetup();
void setGenerators(std::vector<cmake::GeneratorInfo> const& gens);
void setCurrentGenerator(const QString& gen);
@@ -64,6 +65,7 @@ protected:
QStringList GeneratorsSupportingPlatform;
QMultiMap<QString, QString> GeneratorSupportedPlatforms;
QMap<QString, QString> GeneratorDefaultPlatform;
+ QString DefaultGeneratorPlatform, DefaultGeneratorToolset;
private:
QFrame* CreateToolsetWidgets();
@@ -197,6 +199,7 @@ protected:
NativeCompilerSetup* mNativeCompilerSetupPage;
CrossCompilerSetup* mCrossCompilerSetupPage;
ToolchainCompilerSetup* mToolchainCompilerSetupPage;
+ QString mDefaultGenerator;
};
#endif // FirstConfigure_h