cmServerProtocol: allow 'cache' request before 'configure'

Fixes: #16989
This commit is contained in:
Daniel Pfeifer
2017-06-17 13:37:10 +02:00
parent 187332b2fa
commit 1df3875871
2 changed files with 1 additions and 6 deletions

View File

@@ -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::

View File

@@ -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;