mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Allow CMake, CTest, and CPack to read presets from a path given by command-line argument instead of always requiring `CMakePresets.json` or `CMakeUserPresets.json` in the source tree. This makes the presets feature more extensible to cases in which the user doesn't have access to the presets defined in the source tree (e.g., if the source tree is not writable). For now, there is no equivalent implementation of such an option in the `cmake-gui`, nor for the recent presets functionality implemented in `ctest_configure` and `ctest_build`. Fixes: #27329
12 lines
559 B
ReStructuredText
12 lines
559 B
ReStructuredText
presets-file-arg
|
|
----------------
|
|
|
|
* :manual:`cmake(1)`, :manual:`ctest(1)`, and :manual:`cpack(1)` gained
|
|
``--presets-file`` arguments to support loading
|
|
:manual:`presets <cmake-presets(7)>` from the specified file instead of
|
|
``CMakePresets.json`` and/or ``CMakeUserPresets.json``. See
|
|
:option:`cmake --presets-file`,
|
|
:option:`cmake --build --presets-file <cmake--build --presets-file>`,
|
|
:option:`cmake --workflow --presets-file <cmake--workflow --presets-file>`,
|
|
:option:`ctest --presets-file`, and :option:`cpack --presets-file` for details.
|