diff --git a/src/plugins/cmakeprojectmanager/cmaketool.cpp b/src/plugins/cmakeprojectmanager/cmaketool.cpp index f12f40824d7..da670561c6c 100644 --- a/src/plugins/cmakeprojectmanager/cmaketool.cpp +++ b/src/plugins/cmakeprojectmanager/cmaketool.cpp @@ -199,6 +199,14 @@ TextEditor::Keywords CMakeTool::keywords() return TextEditor::Keywords(m_variables, m_functions, m_functionArgs); } +bool CMakeTool::hasServerMode() const +{ + supportedGenerators(); // server mode is queried from the output of -E capabilities, + // just like the generators + + return m_hasServerMode; +} + bool CMakeTool::isAutoDetected() const { return m_isAutoDetected; diff --git a/src/plugins/cmakeprojectmanager/cmaketool.h b/src/plugins/cmakeprojectmanager/cmaketool.h index 30193262cbd..ab786fce958 100644 --- a/src/plugins/cmakeprojectmanager/cmaketool.h +++ b/src/plugins/cmakeprojectmanager/cmaketool.h @@ -87,6 +87,7 @@ public: bool isAutoRun() const; QList supportedGenerators() const; TextEditor::Keywords keywords(); + bool hasServerMode() const; bool isAutoDetected() const; QString displayName() const;