mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
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:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -24,6 +24,7 @@ enum FirstConfigurePages
|
||||
|
||||
enum class CompilerOption
|
||||
{
|
||||
DefaultPreset,
|
||||
DefaultNative,
|
||||
SpecifyNative,
|
||||
ToolchainFile,
|
||||
|
||||
Reference in New Issue
Block a user