From 01610a983a28a30dade273bdfdbd0ca208bf1f2b Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Wed, 8 Jan 2025 12:39:12 +0100 Subject: [PATCH] CMakePM: Do not mark targetless CMakeLists.txt files as generated These files are not generated, but they were meant to be hidden. It's better to restore the previous file system view of CMakeLists.txt, until the project view receives a feature to mark files are hidden. Fixes: QTCREATORBUG-32283 Fixes: QTCREATORBUG-32298 Change-Id: Ib1f41339f195eefd96151022c4919b7ac8127f6b Reviewed-by: Eike Ziller --- src/plugins/cmakeprojectmanager/fileapidataextractor.cpp | 5 ----- 1 file changed, 5 deletions(-) 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)) {