CMake: report project issues if the CMakeKitAspect is irrelevant

This disables python kits when opening cmake projects in the target
setup page.

Change-Id: I205edd865c0eb6c499368f1d5e9f2c4b4bc8237a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
David Schulz
2024-01-25 15:41:44 +01:00
parent c0a008957d
commit 8b78eb2d22

View File

@@ -250,7 +250,7 @@ Id CMakeKitAspect::cmakeToolId(const Kit *k)
CMakeTool *CMakeKitAspect::cmakeTool(const Kit *k)
{
return CMakeToolManager::findById(cmakeToolId(k));
return k->isAspectRelevant(id()) ? CMakeToolManager::findById(cmakeToolId(k)) : nullptr;
}
void CMakeKitAspect::setCMakeTool(Kit *k, const Id id)