diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-10-09 19:35:54 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-10-09 19:35:54 (GMT) |
commit | 94c955e508daa0ed84290cc1d3e946a74fde0e40 (patch) | |
tree | d0d68c36ee4bfe43f2638b9d3813a4accc1ccda0 /Help/manual/cmake.1.rst | |
parent | d6af1e83bc1fa7f8dcdeadcf57a91d8e5469dae8 (diff) | |
download | CMake-94c955e508daa0ed84290cc1d3e946a74fde0e40.zip CMake-94c955e508daa0ed84290cc1d3e946a74fde0e40.tar.gz CMake-94c955e508daa0ed84290cc1d3e946a74fde0e40.tar.bz2 |
Tests: Test the CMakePresets.json example in the documentation
Diffstat (limited to 'Help/manual/cmake.1.rst')
-rw-r--r-- | Help/manual/cmake.1.rst | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst index 0eadff4..b345db0 100644 --- a/Help/manual/cmake.1.rst +++ b/Help/manual/cmake.1.rst @@ -174,31 +174,8 @@ source and build trees and generate a buildsystem: The files are a JSON document with an object as the root: - .. code-block:: json - - { - "version": 1, - "cmakeMinimumRequired": { - "major": 3, - "minor": 19, - "patch": 0 - }, - "configurePresets": [ - { - "name": "default", - "displayName": "Default Config", - "description": "Default build using Ninja generator", - "generator": "Ninja", - "binaryDir": "${sourceDir}/build/default", - "cacheVariables": { - "MY_CACHE_VARIABLE": { - "type": "BOOL", - "value": "OFF" - } - } - } - ] - } + .. literalinclude:: presets/example.json + :language: json The root object recognizes the following fields: |