summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-06-12 15:42:44 (GMT)
committerBrad King <brad.king@kitware.com>2019-06-12 15:42:44 (GMT)
commitfa00a3b29bdc962429af13c64f11b51fee8c58bb (patch)
tree9aec87bfb4dea2bb3e74ab08a8692838a79f9fa5 /Source/cmake.cxx
parent8d3c919a3cbef7d92f24409fa7a5737e835957ee (diff)
parentc932f498426609beb14b9339c2a7dec3ea624998 (diff)
downloadCMake-fa00a3b29bdc962429af13c64f11b51fee8c58bb.zip
CMake-fa00a3b29bdc962429af13c64f11b51fee8c58bb.tar.gz
CMake-fa00a3b29bdc962429af13c64f11b51fee8c58bb.tar.bz2
Merge branch 'capabilities-fileapi' into release-3.15
Merge-request: !3433
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index f0b53f4..3772f09 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -248,7 +248,7 @@ Json::Value cmake::ReportVersionJson() const
return version;
}
-Json::Value cmake::ReportCapabilitiesJson(bool haveServerMode) const
+Json::Value cmake::ReportCapabilitiesJson() const
{
Json::Value obj = Json::objectValue;
@@ -284,18 +284,19 @@ Json::Value cmake::ReportCapabilitiesJson(bool haveServerMode) const
generators.append(i.second);
}
obj["generators"] = generators;
- obj["serverMode"] = haveServerMode;
+ obj["fileApi"] = cmFileAPI::ReportCapabilities();
+ obj["serverMode"] = true;
return obj;
}
#endif
-std::string cmake::ReportCapabilities(bool haveServerMode) const
+std::string cmake::ReportCapabilities() const
{
std::string result;
#if defined(CMAKE_BUILD_WITH_CMAKE)
Json::FastWriter writer;
- result = writer.write(this->ReportCapabilitiesJson(haveServerMode));
+ result = writer.write(this->ReportCapabilitiesJson());
#else
result = "Not supported";
#endif