cmake-server.7.rst 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. .. cmake-manual-description: CMake Server
  2. cmake-server(7)
  3. ***************
  4. .. only:: html
  5. .. contents::
  6. .. deprecated:: 3.15
  7. This will be removed from a future version of CMake.
  8. Clients should use the :manual:`cmake-file-api(7)` instead.
  9. Introduction
  10. ============
  11. :manual:`cmake(1)` is capable of providing semantic information about
  12. CMake code it executes to generate a buildsystem. If executed with
  13. the ``-E server`` command line options, it starts in a long running mode
  14. and allows a client to request the available information via a JSON protocol.
  15. The protocol is designed to be useful to IDEs, refactoring tools, and
  16. other tools which have a need to understand the buildsystem in entirety.
  17. A single :manual:`cmake-buildsystem(7)` may describe buildsystem contents
  18. and build properties which differ based on
  19. :manual:`generation-time context <cmake-generator-expressions(7)>`
  20. including:
  21. * The Platform (eg, Windows, APPLE, Linux).
  22. * The build configuration (eg, Debug, Release, Coverage).
  23. * The Compiler (eg, MSVC, GCC, Clang) and compiler version.
  24. * The language of the source files compiled.
  25. * Available compile features (eg CXX variadic templates).
  26. * CMake policies.
  27. The protocol aims to provide information to tooling to satisfy several
  28. needs:
  29. #. Provide a complete and easily parsed source of all information relevant
  30. to the tooling as it relates to the source code. There should be no need
  31. for tooling to parse generated buildsystems to access include directories
  32. or compile definitions for example.
  33. #. Semantic information about the CMake buildsystem itself.
  34. #. Provide a stable interface for reading the information in the CMake cache.
  35. #. Information for determining when cmake needs to be re-run as a result of
  36. file changes.
  37. Operation
  38. =========
  39. Start :manual:`cmake(1)` in the server command mode, supplying the path to
  40. the build directory to process::
  41. cmake -E server (--debug|--pipe=<NAMED_PIPE>)
  42. The server will communicate using stdin/stdout (with the ``--debug`` parameter)
  43. or using a named pipe (with the ``--pipe=<NAMED_PIPE>`` parameter). Note
  44. that "named pipe" refers to a local domain socket on Unix and to a named pipe
  45. on Windows.
  46. When connecting to the server (via named pipe or by starting it in ``--debug``
  47. mode), the server will reply with a hello message::
  48. [== "CMake Server" ==[
  49. {"supportedProtocolVersions":[{"major":1,"minor":0}],"type":"hello"}
  50. ]== "CMake Server" ==]
  51. Messages sent to and from the process are wrapped in magic strings::
  52. [== "CMake Server" ==[
  53. {
  54. ... some JSON message ...
  55. }
  56. ]== "CMake Server" ==]
  57. The server is now ready to accept further requests via the named pipe
  58. or stdin.
  59. Debugging
  60. =========
  61. CMake server mode can be asked to provide statistics on execution times, etc.
  62. or to dump a copy of the response into a file. This is done passing a "debug"
  63. JSON object as a child of the request.
  64. The debug object supports the "showStats" key, which takes a boolean and makes
  65. the server mode return a "zzzDebug" object with stats as part of its response.
  66. "dumpToFile" takes a string value and will cause the cmake server to copy
  67. the response into the given filename.
  68. This is a response from the cmake server with "showStats" set to true::
  69. [== "CMake Server" ==[
  70. {
  71. "cookie":"",
  72. "errorMessage":"Waiting for type \"handshake\".",
  73. "inReplyTo":"unknown",
  74. "type":"error",
  75. "zzzDebug": {
  76. "dumpFile":"/tmp/error.txt",
  77. "jsonSerialization":0.011016,
  78. "size":111,
  79. "totalTime":0.025995
  80. }
  81. }
  82. ]== "CMake Server" ==]
  83. The server has made a copy of this response into the file /tmp/error.txt and
  84. took 0.011 seconds to turn the JSON response into a string, and it took 0.025
  85. seconds to process the request in total. The reply has a size of 111 bytes.
  86. Protocol API
  87. ============
  88. General Message Layout
  89. ----------------------
  90. All messages need to have a "type" value, which identifies the type of
  91. message that is passed back or forth. E.g. the initial message sent by the
  92. server is of type "hello". Messages without a type will generate an response
  93. of type "error".
  94. All requests sent to the server may contain a "cookie" value. This value
  95. will he handed back unchanged in all responses triggered by the request.
  96. All responses will contain a value "inReplyTo", which may be empty in
  97. case of parse errors, but will contain the type of the request message
  98. in all other cases.
  99. Type "reply"
  100. ^^^^^^^^^^^^
  101. This type is used by the server to reply to requests.
  102. The message may -- depending on the type of the original request --
  103. contain values.
  104. Example::
  105. [== "CMake Server" ==[
  106. {"cookie":"zimtstern","inReplyTo":"handshake","type":"reply"}
  107. ]== "CMake Server" ==]
  108. Type "error"
  109. ^^^^^^^^^^^^
  110. This type is used to return an error condition to the client. It will
  111. contain an "errorMessage".
  112. Example::
  113. [== "CMake Server" ==[
  114. {"cookie":"","errorMessage":"Protocol version not supported.","inReplyTo":"handshake","type":"error"}
  115. ]== "CMake Server" ==]
  116. Type "progress"
  117. ^^^^^^^^^^^^^^^
  118. When the server is busy for a long time, it is polite to send back replies of
  119. type "progress" to the client. These will contain a "progressMessage" with a
  120. string describing the action currently taking place as well as
  121. "progressMinimum", "progressMaximum" and "progressCurrent" with integer values
  122. describing the range of progress.
  123. Messages of type "progress" will be followed by more "progress" messages or with
  124. a message of type "reply" or "error" that complete the request.
  125. "progress" messages may not be emitted after the "reply" or "error" message for
  126. the request that triggered the responses was delivered.
  127. Type "message"
  128. ^^^^^^^^^^^^^^
  129. A message is triggered when the server processes a request and produces some
  130. form of output that should be displayed to the user. A Message has a "message"
  131. with the actual text to display as well as a "title" with a suggested dialog
  132. box title.
  133. Example::
  134. [== "CMake Server" ==[
  135. {"cookie":"","message":"Something happened.","title":"Title Text","inReplyTo":"handshake","type":"message"}
  136. ]== "CMake Server" ==]
  137. Type "signal"
  138. ^^^^^^^^^^^^^
  139. The server can send signals when it detects changes in the system state. Signals
  140. are of type "signal", have an empty "cookie" and "inReplyTo" field and always
  141. have a "name" set to show which signal was sent.
  142. Specific Signals
  143. ----------------
  144. The cmake server may sent signals with the following names:
  145. "dirty" Signal
  146. ^^^^^^^^^^^^^^
  147. The "dirty" signal is sent whenever the server determines that the configuration
  148. of the project is no longer up-to-date. This happens when any of the files that have
  149. an influence on the build system is changed.
  150. The "dirty" signal may look like this::
  151. [== "CMake Server" ==[
  152. {
  153. "cookie":"",
  154. "inReplyTo":"",
  155. "name":"dirty",
  156. "type":"signal"}
  157. ]== "CMake Server" ==]
  158. "fileChange" Signal
  159. ^^^^^^^^^^^^^^^^^^^
  160. The "fileChange" signal is sent whenever a watched file is changed. It contains
  161. the "path" that has changed and a list of "properties" with the kind of change
  162. that was detected. Possible changes are "change" and "rename".
  163. The "fileChange" signal looks like this::
  164. [== "CMake Server" ==[
  165. {
  166. "cookie":"",
  167. "inReplyTo":"",
  168. "name":"fileChange",
  169. "path":"/absolute/CMakeLists.txt",
  170. "properties":["change"],
  171. "type":"signal"}
  172. ]== "CMake Server" ==]
  173. Specific Message Types
  174. ----------------------
  175. Type "hello"
  176. ^^^^^^^^^^^^
  177. The initial message send by the cmake server on startup is of type "hello".
  178. This is the only message ever sent by the server that is not of type "reply",
  179. "progress" or "error".
  180. It will contain "supportedProtocolVersions" with an array of server protocol
  181. versions supported by the cmake server. These are JSON objects with "major" and
  182. "minor" keys containing non-negative integer values. Some versions may be marked
  183. as experimental. These will contain the "isExperimental" key set to true. Enabling
  184. these requires a special command line argument when starting the cmake server mode.
  185. Within a "major" version all "minor" versions are fully backwards compatible.
  186. New "minor" versions may introduce functionality in such a way that existing
  187. clients of the same "major" version will continue to work, provided they
  188. ignore keys in the output that they do not know about.
  189. Example::
  190. [== "CMake Server" ==[
  191. {"supportedProtocolVersions":[{"major":0,"minor":1}],"type":"hello"}
  192. ]== "CMake Server" ==]
  193. Type "handshake"
  194. ^^^^^^^^^^^^^^^^
  195. The first request that the client may send to the server is of type "handshake".
  196. This request needs to pass one of the "supportedProtocolVersions" of the "hello"
  197. type response received earlier back to the server in the "protocolVersion" field.
  198. Giving the "major" version of the requested protocol version will make the server
  199. use the latest minor version of that protocol. Use this if you do not explicitly
  200. need to depend on a specific minor version.
  201. Protocol version 1.0 requires the following attributes to be set:
  202. * "sourceDirectory" with a path to the sources
  203. * "buildDirectory" with a path to the build directory
  204. * "generator" with the generator name
  205. * "extraGenerator" (optional!) with the extra generator to be used
  206. * "platform" with the generator platform (if supported by the generator)
  207. * "toolset" with the generator toolset (if supported by the generator)
  208. Protocol version 1.2 makes all but the build directory optional, provided
  209. there is a valid cache in the build directory that contains all the other
  210. information already.
  211. Example::
  212. [== "CMake Server" ==[
  213. {"cookie":"zimtstern","type":"handshake","protocolVersion":{"major":0},
  214. "sourceDirectory":"/home/code/cmake", "buildDirectory":"/tmp/testbuild",
  215. "generator":"Ninja"}
  216. ]== "CMake Server" ==]
  217. which will result in a response type "reply"::
  218. [== "CMake Server" ==[
  219. {"cookie":"zimtstern","inReplyTo":"handshake","type":"reply"}
  220. ]== "CMake Server" ==]
  221. indicating that the server is ready for action.
  222. Type "globalSettings"
  223. ^^^^^^^^^^^^^^^^^^^^^
  224. This request can be sent after the initial handshake. It will return a
  225. JSON structure with information on cmake state.
  226. Example::
  227. [== "CMake Server" ==[
  228. {"type":"globalSettings"}
  229. ]== "CMake Server" ==]
  230. which will result in a response type "reply"::
  231. [== "CMake Server" ==[
  232. {
  233. "buildDirectory": "/tmp/test-build",
  234. "capabilities": {
  235. "generators": [
  236. {
  237. "extraGenerators": [],
  238. "name": "Watcom WMake",
  239. "platformSupport": false,
  240. "toolsetSupport": false
  241. },
  242. <...>
  243. ],
  244. "serverMode": false,
  245. "version": {
  246. "isDirty": false,
  247. "major": 3,
  248. "minor": 6,
  249. "patch": 20160830,
  250. "string": "3.6.20160830-gd6abad",
  251. "suffix": "gd6abad"
  252. }
  253. },
  254. "checkSystemVars": false,
  255. "cookie": "",
  256. "extraGenerator": "",
  257. "generator": "Ninja",
  258. "debugOutput": false,
  259. "inReplyTo": "globalSettings",
  260. "sourceDirectory": "/home/code/cmake",
  261. "trace": false,
  262. "traceExpand": false,
  263. "type": "reply",
  264. "warnUninitialized": false,
  265. "warnUnused": false,
  266. "warnUnusedCli": true
  267. }
  268. ]== "CMake Server" ==]
  269. Type "setGlobalSettings"
  270. ^^^^^^^^^^^^^^^^^^^^^^^^
  271. This request can be sent to change the global settings attributes. Unknown
  272. attributes are going to be ignored. Read-only attributes reported by
  273. "globalSettings" are all capabilities, buildDirectory, generator,
  274. extraGenerator and sourceDirectory. Any attempt to set these will be ignored,
  275. too.
  276. All other settings will be changed.
  277. The server will respond with an empty reply message or an error.
  278. Example::
  279. [== "CMake Server" ==[
  280. {"type":"setGlobalSettings","debugOutput":true}
  281. ]== "CMake Server" ==]
  282. CMake will reply to this with::
  283. [== "CMake Server" ==[
  284. {"inReplyTo":"setGlobalSettings","type":"reply"}
  285. ]== "CMake Server" ==]
  286. Type "configure"
  287. ^^^^^^^^^^^^^^^^
  288. This request will configure a project for build.
  289. To configure a build directory already containing cmake files, it is enough to
  290. set "buildDirectory" via "setGlobalSettings". To create a fresh build directory
  291. you also need to set "currentGenerator" and "sourceDirectory" via "setGlobalSettings"
  292. in addition to "buildDirectory".
  293. You may a list of strings to "configure" via the "cacheArguments" key. These
  294. strings will be interpreted similar to command line arguments related to
  295. cache handling that are passed to the cmake command line client.
  296. Example::
  297. [== "CMake Server" ==[
  298. {"type":"configure", "cacheArguments":["-Dsomething=else"]}
  299. ]== "CMake Server" ==]
  300. CMake will reply like this (after reporting progress for some time)::
  301. [== "CMake Server" ==[
  302. {"cookie":"","inReplyTo":"configure","type":"reply"}
  303. ]== "CMake Server" ==]
  304. Type "compute"
  305. ^^^^^^^^^^^^^^
  306. This request will generate build system files in the build directory and
  307. is only available after a project was successfully "configure"d.
  308. Example::
  309. [== "CMake Server" ==[
  310. {"type":"compute"}
  311. ]== "CMake Server" ==]
  312. CMake will reply (after reporting progress information)::
  313. [== "CMake Server" ==[
  314. {"cookie":"","inReplyTo":"compute","type":"reply"}
  315. ]== "CMake Server" ==]
  316. Type "codemodel"
  317. ^^^^^^^^^^^^^^^^
  318. The "codemodel" request can be used after a project was "compute"d successfully.
  319. It will list the complete project structure as it is known to cmake.
  320. The reply will contain a key "configurations", which will contain a list of
  321. configuration objects. Configuration objects are used to destinquish between
  322. different configurations the build directory might have enabled. While most
  323. generators only support one configuration, others might support several.
  324. Each configuration object can have the following keys:
  325. "name"
  326. contains the name of the configuration. The name may be empty.
  327. "projects"
  328. contains a list of project objects, one for each build project.
  329. Project objects define one (sub-)project defined in the cmake build system.
  330. Each project object can have the following keys:
  331. "name"
  332. contains the (sub-)projects name.
  333. "minimumCMakeVersion"
  334. contains the minimum cmake version allowed for this project, null if the
  335. project doesn't specify one.
  336. "hasInstallRule"
  337. true if the project contains any install rules, false otherwise.
  338. "sourceDirectory"
  339. contains the current source directory
  340. "buildDirectory"
  341. contains the current build directory.
  342. "targets"
  343. contains a list of build system target objects.
  344. Target objects define individual build targets for a certain configuration.
  345. Each target object can have the following keys:
  346. "name"
  347. contains the name of the target.
  348. "type"
  349. defines the type of build of the target. Possible values are
  350. "STATIC_LIBRARY", "MODULE_LIBRARY", "SHARED_LIBRARY", "OBJECT_LIBRARY",
  351. "EXECUTABLE", "UTILITY" and "INTERFACE_LIBRARY".
  352. "fullName"
  353. contains the full name of the build result (incl. extensions, etc.).
  354. "sourceDirectory"
  355. contains the current source directory.
  356. "buildDirectory"
  357. contains the current build directory.
  358. "isGeneratorProvided"
  359. true if the target is auto-created by a generator, false otherwise
  360. "hasInstallRule"
  361. true if the target contains any install rules, false otherwise.
  362. "installPaths"
  363. full path to the destination directories defined by target install rules.
  364. "artifacts"
  365. with a list of build artifacts. The list is sorted with the most
  366. important artifacts first (e.g. a .DLL file is listed before a
  367. .PDB file on windows).
  368. "linkerLanguage"
  369. contains the language of the linker used to produce the artifact.
  370. "linkLibraries"
  371. with a list of libraries to link to. This value is encoded in the
  372. system's native shell format.
  373. "linkFlags"
  374. with a list of flags to pass to the linker. This value is encoded in
  375. the system's native shell format.
  376. "linkLanguageFlags"
  377. with the flags for a compiler using the linkerLanguage. This value is
  378. encoded in the system's native shell format.
  379. "frameworkPath"
  380. with the framework path (on Apple computers). This value is encoded
  381. in the system's native shell format.
  382. "linkPath"
  383. with the link path. This value is encoded in the system's native shell
  384. format.
  385. "sysroot"
  386. with the sysroot path.
  387. "fileGroups"
  388. contains the source files making up the target.
  389. FileGroups are used to group sources using similar settings together.
  390. Each fileGroup object may contain the following keys:
  391. "language"
  392. contains the programming language used by all files in the group.
  393. "compileFlags"
  394. with a string containing all the flags passed to the compiler
  395. when building any of the files in this group. This value is encoded in
  396. the system's native shell format.
  397. "includePath"
  398. with a list of include paths. Each include path is an object
  399. containing a "path" with the actual include path and "isSystem" with a bool
  400. value informing whether this is a normal include or a system include. This
  401. value is encoded in the system's native shell format.
  402. "defines"
  403. with a list of defines in the form "SOMEVALUE" or "SOMEVALUE=42". This
  404. value is encoded in the system's native shell format.
  405. "sources"
  406. with a list of source files.
  407. All file paths in the fileGroup are either absolute or relative to the
  408. sourceDirectory of the target.
  409. Example::
  410. [== "CMake Server" ==[
  411. {"type":"codemodel"}
  412. ]== "CMake Server" ==]
  413. CMake will reply::
  414. [== "CMake Server" ==[
  415. {
  416. "configurations": [
  417. {
  418. "name": "",
  419. "projects": [
  420. {
  421. "buildDirectory": "/tmp/build/Source/CursesDialog/form",
  422. "name": "CMAKE_FORM",
  423. "sourceDirectory": "/home/code/src/cmake/Source/CursesDialog/form",
  424. "targets": [
  425. {
  426. "artifacts": [ "/tmp/build/Source/CursesDialog/form/libcmForm.a" ],
  427. "buildDirectory": "/tmp/build/Source/CursesDialog/form",
  428. "fileGroups": [
  429. {
  430. "compileFlags": " -std=gnu11",
  431. "defines": [ "CURL_STATICLIB", "LIBARCHIVE_STATIC" ],
  432. "includePath": [ { "path": "/tmp/build/Utilities" }, <...> ],
  433. "isGenerated": false,
  434. "language": "C",
  435. "sources": [ "fld_arg.c", <...> ]
  436. }
  437. ],
  438. "fullName": "libcmForm.a",
  439. "linkerLanguage": "C",
  440. "name": "cmForm",
  441. "sourceDirectory": "/home/code/src/cmake/Source/CursesDialog/form",
  442. "type": "STATIC_LIBRARY"
  443. }
  444. ]
  445. },
  446. <...>
  447. ]
  448. }
  449. ],
  450. "cookie": "",
  451. "inReplyTo": "codemodel",
  452. "type": "reply"
  453. }
  454. ]== "CMake Server" ==]
  455. Type "ctestInfo"
  456. ^^^^^^^^^^^^^^^^
  457. The "ctestInfo" request can be used after a project was "compute"d successfully.
  458. It will list the complete project test structure as it is known to cmake.
  459. The reply will contain a key "configurations", which will contain a list of
  460. configuration objects. Configuration objects are used to destinquish between
  461. different configurations the build directory might have enabled. While most
  462. generators only support one configuration, others might support several.
  463. Each configuration object can have the following keys:
  464. "name"
  465. contains the name of the configuration. The name may be empty.
  466. "projects"
  467. contains a list of project objects, one for each build project.
  468. Project objects define one (sub-)project defined in the cmake build system.
  469. Each project object can have the following keys:
  470. "name"
  471. contains the (sub-)projects name.
  472. "ctestInfo"
  473. contains a list of test objects.
  474. Each test object can have the following keys:
  475. "ctestName"
  476. contains the name of the test.
  477. "ctestCommand"
  478. contains the test command.
  479. "properties"
  480. contains a list of test property objects.
  481. Each test property object can have the following keys:
  482. "key"
  483. contains the test property key.
  484. "value"
  485. contains the test property value.
  486. Type "cmakeInputs"
  487. ^^^^^^^^^^^^^^^^^^
  488. The "cmakeInputs" requests will report files used by CMake as part
  489. of the build system itself.
  490. This request is only available after a project was successfully
  491. "configure"d.
  492. Example::
  493. [== "CMake Server" ==[
  494. {"type":"cmakeInputs"}
  495. ]== "CMake Server" ==]
  496. CMake will reply with the following information::
  497. [== "CMake Server" ==[
  498. {"buildFiles":
  499. [
  500. {"isCMake":true,"isTemporary":false,"sources":["/usr/lib/cmake/...", ... ]},
  501. {"isCMake":false,"isTemporary":false,"sources":["CMakeLists.txt", ...]},
  502. {"isCMake":false,"isTemporary":true,"sources":["/tmp/build/CMakeFiles/...", ...]}
  503. ],
  504. "cmakeRootDirectory":"/usr/lib/cmake",
  505. "sourceDirectory":"/home/code/src/cmake",
  506. "cookie":"",
  507. "inReplyTo":"cmakeInputs",
  508. "type":"reply"
  509. }
  510. ]== "CMake Server" ==]
  511. All file names are either relative to the top level source directory or
  512. absolute.
  513. The list of files which "isCMake" set to true are part of the cmake installation.
  514. The list of files witch "isTemporary" set to true are part of the build directory
  515. and will not survive the build directory getting cleaned out.
  516. Type "cache"
  517. ^^^^^^^^^^^^
  518. The "cache" request will list the cached configuration values.
  519. Example::
  520. [== "CMake Server" ==[
  521. {"type":"cache"}
  522. ]== "CMake Server" ==]
  523. CMake will respond with the following output::
  524. [== "CMake Server" ==[
  525. {
  526. "cookie":"","inReplyTo":"cache","type":"reply",
  527. "cache":
  528. [
  529. {
  530. "key":"SOMEVALUE",
  531. "properties":
  532. {
  533. "ADVANCED":"1",
  534. "HELPSTRING":"This is not helpful"
  535. }
  536. "type":"STRING",
  537. "value":"TEST"}
  538. ]
  539. }
  540. ]== "CMake Server" ==]
  541. The output can be limited to a list of keys by passing an array of key names
  542. to the "keys" optional field of the "cache" request.
  543. Type "fileSystemWatchers"
  544. ^^^^^^^^^^^^^^^^^^^^^^^^^
  545. The server can watch the filesystem for changes. The "fileSystemWatchers"
  546. command will report on the files and directories watched.
  547. Example::
  548. [== "CMake Server" ==[
  549. {"type":"fileSystemWatchers"}
  550. ]== "CMake Server" ==]
  551. CMake will respond with the following output::
  552. [== "CMake Server" ==[
  553. {
  554. "cookie":"","inReplyTo":"fileSystemWatchers","type":"reply",
  555. "watchedFiles": [ "/absolute/path" ],
  556. "watchedDirectories": [ "/absolute" ]
  557. }
  558. ]== "CMake Server" ==]