forked from qt-creator/qt-creator
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:
@@ -250,7 +250,7 @@ Id CMakeKitAspect::cmakeToolId(const Kit *k)
|
|||||||
|
|
||||||
CMakeTool *CMakeKitAspect::cmakeTool(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)
|
void CMakeKitAspect::setCMakeTool(Kit *k, const Id id)
|
||||||
|
|||||||
Reference in New Issue
Block a user