diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2016-09-28 15:48:10 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2016-09-30 07:27:38 +0000 |
commit | 8d608d2a74a86bf0f89616de5837e10bd66807f3 (patch) | |
tree | b6c25505c70d4d2c28261a3304728dcd6913a5f7 /src/plugins/cmakeprojectmanager/cmaketool.cpp | |
parent | 3ef11019e217048e4b28d17ad89c69706ef3887f (diff) | |
download | qt-creator-8d608d2a74a86bf0f89616de5837e10bd66807f3.tar.gz |
CMake: Add method to query server mode support to CMakeTool
Change-Id: I88ce643749d2d8f801b20a2c6d7555348292af94
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmaketool.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmaketool.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmaketool.cpp b/src/plugins/cmakeprojectmanager/cmaketool.cpp index f12f40824d..da670561c6 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; |