Commit ae1df70c authored by dt's avatar dt
Browse files

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.
parent 7f7a9ff3
...@@ -190,6 +190,9 @@ void CMakeProject::parseCMakeLists() ...@@ -190,6 +190,9 @@ void CMakeProject::parseCMakeLists()
else else
allIncludePaths.append(headerPath.path()); allIncludePaths.append(headerPath.path());
} }
// This explicitly adds -I. to the include paths
allIncludePaths.append(sourceDirectory);
allIncludePaths.append(cbpparser.includeFiles()); allIncludePaths.append(cbpparser.includeFiles());
CppTools::CppModelManagerInterface *modelmanager = ExtensionSystem::PluginManager::instance()->getObject<CppTools::CppModelManagerInterface>(); CppTools::CppModelManagerInterface *modelmanager = ExtensionSystem::PluginManager::instance()->getObject<CppTools::CppModelManagerInterface>();
if (modelmanager) { if (modelmanager) {
......
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