summaryrefslogtreecommitdiffstats
path: root/Source/cmServerProtocol.cxx
diff options
context:
space:
mode:
authorJustin Goshi <jgoshi@microsoft.com>2017-11-07 19:34:31 (GMT)
committerJustin Goshi <jgoshi@microsoft.com>2017-11-07 20:15:57 (GMT)
commitcdf5f34b0c2ce8b984721f13a4dcd598a3d593e3 (patch)
tree76f59bc5ab0172cb40353072c7aca1237d502ae2 /Source/cmServerProtocol.cxx
parenta7347c022eb67272eea7dca5a58d0b94806b7d95 (diff)
downloadCMake-cdf5f34b0c2ce8b984721f13a4dcd598a3d593e3.zip
CMake-cdf5f34b0c2ce8b984721f13a4dcd598a3d593e3.tar.gz
CMake-cdf5f34b0c2ce8b984721f13a4dcd598a3d593e3.tar.bz2
server: return minimum cmake required version for each project
Diffstat (limited to 'Source/cmServerProtocol.cxx')
-rw-r--r--Source/cmServerProtocol.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx
index 0cb906b..07df488 100644
--- a/Source/cmServerProtocol.cxx
+++ b/Source/cmServerProtocol.cxx
@@ -1116,6 +1116,8 @@ static Json::Value DumpProjectList(const cmake* cm, std::string const& config)
// Project structure information:
const cmMakefile* mf = lg->GetMakefile();
+ pObj[kMINIMUM_CMAKE_VERSION] =
+ mf->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION");
pObj[kHAS_INSTALL_RULE] = mf->GetInstallGenerators().empty() == false;
pObj[kSOURCE_DIRECTORY_KEY] = mf->GetCurrentSourceDirectory();
pObj[kBUILD_DIRECTORY_KEY] = mf->GetCurrentBinaryDirectory();