diff options
author | Code Smith <codesmith512@gmail.com> | 2020-02-05 02:34:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-02-06 16:59:08 (GMT) |
commit | 9a71fa46e7772af52f293ba32f57097f56116b20 (patch) | |
tree | 8e16dc69931fec8270b6ddc350b7e2c452c37b7b /Source/QtDialog/FirstConfigure.h | |
parent | b49e5344e790507b0eebc4768d6f338d30138514 (diff) | |
download | CMake-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.h | 5 |
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 |