forked from qt-creator/qt-creator
CMake: Allow autodetected tools to associate themselves with kits
Change-Id: I5b48ddf36ba1b9c4eb6476017be63c4d43b60627 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -177,7 +177,7 @@ void CMakeToolManager::updateDocumentation()
|
||||
Core::HelpManager::registerDocumentation(docs);
|
||||
}
|
||||
|
||||
void CMakeToolManager::registerCMakeByPath(const FilePath &cmakePath)
|
||||
void CMakeToolManager::registerCMakeByPath(const FilePath &cmakePath, const QString &detectionSource)
|
||||
{
|
||||
const Id id = Id::fromString(cmakePath.toUserOutput());
|
||||
|
||||
@@ -188,6 +188,7 @@ void CMakeToolManager::registerCMakeByPath(const FilePath &cmakePath)
|
||||
auto newTool = std::make_unique<CMakeTool>(CMakeTool::ManualDetection, id);
|
||||
newTool->setFilePath(cmakePath);
|
||||
newTool->setDisplayName(cmakePath.toUserOutput());
|
||||
newTool->setDetectionSource(detectionSource);
|
||||
registerCMakeTool(std::move(newTool));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user