diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-06-17 11:37:10 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-08-13 20:02:31 (GMT) |
commit | 1df3875871af9aa3f144ab065479b98e255aca5a (patch) | |
tree | 16550921d73b127b0e9f28c03e77e2b16a58c519 | |
parent | 187332b2fa169056a2c3682d9a7628d872b2d49b (diff) | |
download | CMake-1df3875871af9aa3f144ab065479b98e255aca5a.zip CMake-1df3875871af9aa3f144ab065479b98e255aca5a.tar.gz CMake-1df3875871af9aa3f144ab065479b98e255aca5a.tar.bz2 |
cmServerProtocol: allow 'cache' request before 'configure'
Fixes: #16989
-rw-r--r-- | Help/manual/cmake-server.7.rst | 3 | ||||
-rw-r--r-- | Source/cmServerProtocol.cxx | 4 |
2 files changed, 1 insertions, 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; |