Browse Source

cmServerProtocol: allow 'cache' request before 'configure'

Fixes: #16989
Daniel Pfeifer 8 years ago
parent
commit
1df3875871
2 changed files with 1 additions and 6 deletions
  1. 1 2
      Help/manual/cmake-server.7.rst
  2. 0 4
      Source/cmServerProtocol.cxx

+ 1 - 2
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::
 

+ 0 - 4
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;