From ae1df70cfc0537bb8a6e036bce7b8ac0bbd53c87 Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Fri, 27 Mar 2009 12:15:20 +0100 Subject: [PATCH] Adds the source top level directory explicitly to the include paths. It wasn't listed in the cbp file, so add it since cmake does that too. --- src/plugins/cmakeprojectmanager/cmakeproject.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp index b048257b8a1..d0229bd8b11 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp @@ -190,6 +190,9 @@ void CMakeProject::parseCMakeLists() else allIncludePaths.append(headerPath.path()); } + // This explicitly adds -I. to the include paths + allIncludePaths.append(sourceDirectory); + allIncludePaths.append(cbpparser.includeFiles()); CppTools::CppModelManagerInterface *modelmanager = ExtensionSystem::PluginManager::instance()->getObject<CppTools::CppModelManagerInterface>(); if (modelmanager) { -- GitLab