我想在 Linux 命令行中使用 CMake 服务器模式。文档告诉我按如下方式启动 CMake:
cmake -E server (--debug|--pipe <NAMED_PIPE>)
但对我来说,它只能这样工作:
cmake -E server --experimental --debug
[== "CMake Server" ==[
{"supportedProtocolVersions":[{"isExperimental":true,"major":1,"minor":0}],"type":"hello"}
]== "CMake Server" ==]
我试图向服务器发送请求,但我只收到 hello 响应:
cat request.txt | cmake -E server --experimental --debug
[== "CMake Server" ==[
{"supportedProtocolVersions":[{"isExperimental":true,"major":1,"minor":0}],"type":"hello"}
]== "CMake Server" ==]
如何向 CMake 服务器发送请求?