From 1df3875871af9aa3f144ab065479b98e255aca5a Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Sat, 17 Jun 2017 13:37:10 +0200 Subject: cmServerProtocol: allow 'cache' request before 'configure' Fixes: #16989 --- Help/manual/cmake-server.7.rst | 3 +-- Source/cmServerProtocol.cxx | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Help/manual/cmake-server.7.rst b/Help/manual/cmake-server.7.rst index 6c0e6aa..c56e5a7 100644 --- a/Help/manual/cmake-server.7.rst +++ b/Help/manual/cmake-server.7.rst @@ -666,8 +666,7 @@ and will not survive the build directory getting cleaned out. Type "cache" ^^^^^^^^^^^^ -The "cache" request can be used once a project is configured and will -list the cached configuration values. +The "cache" request will list the cached configuration values. Example:: diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx index 606535f..b371e9e 100644 --- a/Source/cmServerProtocol.cxx +++ b/Source/cmServerProtocol.cxx @@ -490,10 +490,6 @@ bool cmServerProtocol1::IsExperimental() const cmServerResponse cmServerProtocol1::ProcessCache( const cmServerRequest& request) { - if (this->m_State < STATE_CONFIGURED) { - return request.ReportError("This project was not configured yet."); - } - cmState* state = this->CMakeInstance()->GetState(); Json::Value result = Json::objectValue; -- cgit v0.12