diff --git a/src/plugins/qmakeprojectmanager/qmakestep.cpp b/src/plugins/qmakeprojectmanager/qmakestep.cpp index b6e061f4ced..cd547885e84 100644 --- a/src/plugins/qmakeprojectmanager/qmakestep.cpp +++ b/src/plugins/qmakeprojectmanager/qmakestep.cpp @@ -44,6 +44,7 @@ #include #include +#include #include #include #include @@ -367,6 +368,10 @@ bool QMakeStep::linkQmlDebuggingLibrary() const return true; if (m_linkQmlDebuggingLibrary == DoNotLink) return false; + + const Core::Context languages = project()->projectLanguages(); + if (!languages.contains(ProjectExplorer::Constants::LANG_QMLJS)) + return false; return (qmakeBuildConfiguration()->buildType() & BuildConfiguration::Debug); }