From d20c21a678f52e1b8f61d5ebdec311efa9a930bb Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Wed, 3 Jan 2024 14:46:33 -0500 Subject: ccmake: Now supports the preset toolchain entry Previously the toolchain field was ignored when passing a preset to ccmake. --- Source/CursesDialog/cmCursesMainForm.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 77a0048..72460f3 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -962,6 +962,11 @@ int cmCursesMainForm::LoadCache(const char* /*unused*/) if (r < 0) { return r; } + + // Process presets before loading the cache + this->CMakeInstance->ProcessPresetVariables(); + this->CMakeInstance->ProcessPresetEnvironment(); + this->CMakeInstance->SetCacheArgs(this->Args); this->CMakeInstance->PreLoadCMakeFiles(); return r; -- cgit v0.12