forked from qt-creator/qt-creator
CMakePM: Mark CMake presets registered toolchains as Manual
By default are marked as Autodetected, which is not the case for CMake presets. Fixes: QTCREATORBUG-31255 Change-Id: I5c3da7c6e7c68a8a2e80e415393010121b33efb4 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -1168,6 +1168,10 @@ Kit *CMakeProjectImporter::createKit(void *directoryData) const
|
||||
if (!cmtcd.originalTargetTriple.isEmpty())
|
||||
toolchain->setExplicitCodeModelTargetTriple(cmtcd.originalTargetTriple);
|
||||
|
||||
// Mark CMake presets toolchains as manual
|
||||
if (!data->cmakePresetDisplayname.isEmpty() && tcd.areTemporary)
|
||||
toolchain->setDetection(Toolchain::ManualDetection);
|
||||
|
||||
ToolchainKitAspect::setToolchain(k, toolchain);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user