diff --git a/plugins/cppcheck/parameters.cpp b/plugins/cppcheck/parameters.cpp --- a/plugins/cppcheck/parameters.cpp +++ b/plugins/cppcheck/parameters.cpp @@ -23,6 +23,7 @@ #include "globalsettings.h" #include "projectsettings.h" +#include #include #include #include @@ -237,6 +238,12 @@ } } + if (m_project && m_project->managerPlugin()) { + if (m_project->managerPlugin()->componentName() == QStringLiteral("kdevcmakemanager")) { + result << QStringLiteral("-i %1/CMakeFiles").arg(m_projectBuildPath.toLocalFile()); + } + } + result << checkPath; return result;