Commit ff68d4ca authored by Tobias Hunger's avatar Tobias Hunger

CMake: TeaLeafReader: Fix include path detection

Change-Id: Ifcd64836aef7fc69b3cc0d4c27a07293348b91a6
Reviewed-by: Tim Jenssen's avatarTim Jenssen <>
parent 247a6fea
......@@ -353,8 +353,8 @@ void TeaLeafReader::generateProjectTree(CMakeListsNode *root, const QList<FileNo
QSet<FileName> allIncludePathSet;
for (const CMakeBuildTarget &bt : m_buildTargets) {
const QList<Utils::FileName> targetIncludePaths
= Utils::filtered(bt.includeFiles, [root](const Utils::FileName &fn) {
return fn.isChildOf(root->filePath());
= Utils::filtered(bt.includeFiles, [this](const Utils::FileName &fn) {
return fn.isChildOf(m_parameters.sourceDirectory);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment