diff --git a/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp b/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp index 9ef2d86e8ef..9c8c06185a4 100644 --- a/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp +++ b/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp @@ -113,11 +113,6 @@ static CMakeFileResult extractCMakeFilesData(const QFuture &cancelFuture, auto node = std::make_unique(info.path, FileType::Project); node->setIsGenerated(info.isGenerated); - // We will have the CMakeLists.txt file in the Target nodes as a child node. - // Except the root CMakeLists.txt file. - if (info.isCMakeListsDotTxt && info.path.parentDir() != sourceDirectory) - node->setIsGenerated(true); - if (info.isCMakeListsDotTxt) { result.cmakeListNodes.emplace_back(std::move(node)); } else if (info.path.isChildOf(sourceDirectory)) {