diff --git a/src/plugins/clangstaticanalyzer/clangstaticanalyzerruncontrolfactory.cpp b/src/plugins/clangstaticanalyzer/clangstaticanalyzerruncontrolfactory.cpp
index 017a87cefdd5b97f5a046c1837fc2c6486fd3599..f9058f42fb27cd43c22997e200eb714664283d4c 100644
--- a/src/plugins/clangstaticanalyzer/clangstaticanalyzerruncontrolfactory.cpp
+++ b/src/plugins/clangstaticanalyzer/clangstaticanalyzerruncontrolfactory.cpp
@@ -70,6 +70,10 @@ bool ClangStaticAnalyzerRunControlFactory::canRun(RunConfiguration *runConfigura
 
     Project *project = runConfiguration->target()->project();
     QTC_ASSERT(project, return false);
+
+    if (project->id() != "Qt4ProjectManager.Qt4Project" && project->id() != "Qbs.QbsProject")
+        return false;
+
     const Core::Context context = project->projectLanguages();
     if (!context.contains(ProjectExplorer::Constants::LANG_CXX))
         return false;