mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'provide_explicit_source_and_build_command_line_options'
638f00117aAdd release note for the -S and -B options.de962cc00dCMake: Internally uses -S instead of -H to specify source directorya10d63d578cmake: -S and -B can be used to specify source and build directories Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2358
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
``-S <path-to-source>``
|
||||
Path to root directory of the CMake project to build.
|
||||
|
||||
``-B <path-to-build>``
|
||||
Path to directory which CMake will use as the root of build directory.
|
||||
|
||||
If the directory doesn't already exist CMake will make it.
|
||||
|
||||
``-C <initial-cache>``
|
||||
Pre-load a script to populate the cache.
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ Synopsis
|
||||
.. parsed-literal::
|
||||
|
||||
cmake [<options>] {<path-to-source> | <path-to-existing-build>}
|
||||
cmake [<options>] -S <path-to-source> -B <path-to-build>
|
||||
cmake [{-D <var>=<value>}...] -P <cmake-script-file>
|
||||
cmake --build <dir> [<options>...] [-- <build-tool-options>...]
|
||||
cmake --open <dir>
|
||||
|
||||
10
Help/release/dev/cmake-explicit-dirs.rst
Normal file
10
Help/release/dev/cmake-explicit-dirs.rst
Normal file
@@ -0,0 +1,10 @@
|
||||
cmake-explicit-dirs
|
||||
-------------------
|
||||
|
||||
* The :manual:`cmake <cmake(1)>` command gained the ``-S <source_dir>``
|
||||
command line option to specify the location of the source directory.
|
||||
This option can be used independently of ``-B``.
|
||||
|
||||
* The :manual:`cmake <cmake(1)>` command gained the ``-B <build_dir>``
|
||||
command line option to specify the location of the build directory.
|
||||
This option can be used independently of ``-S``.
|
||||
Reference in New Issue
Block a user