diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2016-09-09 08:01:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-26 18:32:22 (GMT) |
commit | 0a8ad6700eb7f54961271b3ee7b41add61eb0be5 (patch) | |
tree | 7568d19560b15c9d3daa7ea45b4f783132f734b8 /Help | |
parent | 544f65f44de0bb63a0b427150eb5e2bc90f58396 (diff) | |
download | CMake-0a8ad6700eb7f54961271b3ee7b41add61eb0be5.zip CMake-0a8ad6700eb7f54961271b3ee7b41add61eb0be5.tar.gz CMake-0a8ad6700eb7f54961271b3ee7b41add61eb0be5.tar.bz2 |
server-mode: Add a configure command
Add a command to trigger cmake to configure a project.
Keep this separate from the compute step (added in the next commit)
to faciliate applications like cmake-gui.
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-server.7.rst | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Help/manual/cmake-server.7.rst b/Help/manual/cmake-server.7.rst index cdd87d1..c5d4968 100644 --- a/Help/manual/cmake-server.7.rst +++ b/Help/manual/cmake-server.7.rst @@ -328,3 +328,30 @@ CMake will reply to this with:: [== CMake Server ==[ {"inReplyTo":"setGlobalSettings","type":"reply"} ]== CMake Server ==] + + +Type "configure" +^^^^^^^^^^^^^^^^ + +This request will configure a project for build. + +To configure a build directory already containing cmake files, it is enough to +set "buildDirectory" via "setGlobalSettings". To create a fresh build directory +you also need to set "currentGenerator" and "sourceDirectory" via "setGlobalSettings" +in addition to "buildDirectory". + +You may a list of strings to "configure" via the "cacheArguments" key. These +strings will be interpreted similar to command line arguments related to +cache handling that are passed to the cmake command line client. + +Example:: + + [== CMake Server ==[ + {"type":"configure", "cacheArguments":["-Dsomething=else"]} + ]== CMake Server ==] + +CMake will reply like this (after reporting progress for some time):: + + [== CMake Server ==[ + {"cookie":"","inReplyTo":"configure","type":"reply"} + ]== CMake Server ==] |