diff options
author | Brad King <brad.king@kitware.com> | 2019-04-19 17:43:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-22 13:38:44 (GMT) |
commit | 996e1885c4995e2d73712a7d0aaa0d615be5fdf0 (patch) | |
tree | 0bc4a1f0f5ef60e6bdb40c11d197d6fc4e045a24 /Source/cmServerProtocol.cxx | |
parent | 8542152626590db6a13b20aa3d36214186c6b40d (diff) | |
download | CMake-996e1885c4995e2d73712a7d0aaa0d615be5fdf0.zip CMake-996e1885c4995e2d73712a7d0aaa0d615be5fdf0.tar.gz CMake-996e1885c4995e2d73712a7d0aaa0d615be5fdf0.tar.bz2 |
server: deprecate in favor of the file-api
Document the server mode as deprecated. Add a deprecation message
to the configure step output when invoked through server mode.
Closes: #19101
Diffstat (limited to 'Source/cmServerProtocol.cxx')
-rw-r--r-- | Source/cmServerProtocol.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx index 203ee93..dad8821 100644 --- a/Source/cmServerProtocol.cxx +++ b/Source/cmServerProtocol.cxx @@ -8,6 +8,7 @@ #include "cmGlobalGenerator.h" #include "cmJsonObjectDictionary.h" #include "cmJsonObjects.h" +#include "cmMessageType.h" #include "cmServer.h" #include "cmServerDictionary.h" #include "cmState.h" @@ -600,6 +601,10 @@ cmServerResponse cmServerProtocol1::ProcessConfigure( } int ret = cm->Configure(); + cm->IssueMessage( + MessageType::DEPRECATION_WARNING, + "The 'cmake-server(7)' is deprecated. " + "Please port clients to use the 'cmake-file-api(7)' instead."); if (ret < 0) { return request.ReportError("Configuration failed."); } |