cmake-gui: Hint that the preset compilers will be used

Instead of stating that the default is the native compilers,
say we will use the compilers from the preset. This makes it
more clear that the preset is working as expected.
This commit is contained in:
Robert Maynard
2024-01-03 14:51:13 -05:00
parent 9090d340b4
commit 9d13674337
3 changed files with 6 additions and 1 deletions

View File

@@ -875,7 +875,7 @@ bool CMakeSetupDialog::setupFirstConfigure()
if (preset.setToolset) {
dialog.setToolset(preset.toolset);
}
dialog.setCompilerOption(CompilerOption::DefaultNative);
dialog.setCompilerOption(CompilerOption::DefaultPreset);
}
if (dialog.exec() == QDialog::Accepted) {

View File

@@ -159,6 +159,10 @@ void StartCompilerSetup::setCompilerOption(CompilerOption option)
{
std::size_t index = 0;
switch (option) {
case CompilerOption::DefaultPreset:
this->CompilerSetupOptions[0]->setText(
tr("Use default preset compilers"));
CM_FALLTHROUGH;
case CompilerOption::DefaultNative:
index = 0;
break;

View File

@@ -24,6 +24,7 @@ enum FirstConfigurePages
enum class CompilerOption
{
DefaultPreset,
DefaultNative,
SpecifyNative,
ToolchainFile,