forked from qt-creator/qt-creator
CMake: Set project file location in tealeaf mode
The tealeafreader creates a RawProjectPart for each cmake build target. However, the location of the CMakeLists.txt is not set/added to RawProjectPart::projectFile and RawProjectPart::buildSystemTarget. Both properties are required by the AutoTest plugin to map run configurations to test configurations. Make tealeafreader use the same code as the servermodereader to determine the location of the CMakeLists.txt. Change-Id: Ia35444799bcd3c46f84ad897044cae56c1aa16ac Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -373,8 +373,8 @@ void TeaLeafReader::updateCodeModel(CppTools::RawProjectParts &rpps)
|
||||
}
|
||||
includePaths += m_parameters.buildDirectory.toString();
|
||||
CppTools::RawProjectPart rpp;
|
||||
rpp.setProjectFileLocation(QString()); // No project file information available!
|
||||
rpp.setBuildSystemTarget(cbt.title + '|');
|
||||
rpp.setProjectFileLocation(cbt.sourceDirectory.toString() + "/CMakeLists.txt");
|
||||
rpp.setBuildSystemTarget(cbt.title + '|' + rpp.projectFile);
|
||||
rpp.setIncludePaths(includePaths);
|
||||
|
||||
CppTools::RawProjectPartFlags cProjectFlags;
|
||||
|
||||
Reference in New Issue
Block a user