Browse Source

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.
Robert Maynard 1 year ago
parent
commit
9d13674337

+ 1 - 1
Source/QtDialog/CMakeSetupDialog.cxx

@@ -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) {

+ 4 - 0
Source/QtDialog/FirstConfigure.cxx

@@ -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;

+ 1 - 0
Source/QtDialog/FirstConfigure.h

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