summaryrefslogtreecommitdiffstats
path: root/Source/cmcmd.cxx
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-09-13 09:05:39 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-19 12:57:28 (GMT)
commitcd049f012ef22f8f1214b35e351fda823d534b92 (patch)
tree90b86186bdf037baca230114485ed965d7d215d8 /Source/cmcmd.cxx
parent419ad0510193eb2b2e227095a4dd167cd9b3df80 (diff)
downloadCMake-cd049f012ef22f8f1214b35e351fda823d534b92.zip
CMake-cd049f012ef22f8f1214b35e351fda823d534b92.tar.gz
CMake-cd049f012ef22f8f1214b35e351fda823d534b92.tar.bz2
cmake-server: Report server mode availablitily in Capabilities
Report the availability of the server-mode in the output of cmake -E capabilities.
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r--Source/cmcmd.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index 900bba0..3b385ab 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -527,7 +527,11 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args)
return 1;
}
cmake cm;
- std::cout << cm.ReportCapabilities();
+#if defined(HAVE_SERVER_MODE) && HAVE_SERVER_MODE
+ std::cout << cm.ReportCapabilities(true);
+#else
+ std::cout << cm.ReportCapabilities(false);
+#endif
return 0;
}