summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-10-16 19:31:01 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-10-22 15:09:28 (GMT)
commit25742c589c80724b1d03357e0c911c443ab991f4 (patch)
tree7412e73ffa82a88e7beb9cc01fe7a638a5363444 /Help
parent609122007dc074739b394d2f70f674bbccca6073 (diff)
downloadCMake-25742c589c80724b1d03357e0c911c443ab991f4.zip
CMake-25742c589c80724b1d03357e0c911c443ab991f4.tar.gz
CMake-25742c589c80724b1d03357e0c911c443ab991f4.tar.bz2
CMakePresets.json: Add ${sourceDirName} macro
Fixes: #21312
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake-presets.7.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/manual/cmake-presets.7.rst b/Help/manual/cmake-presets.7.rst
index 7040ad5..68e6cb9 100644
--- a/Help/manual/cmake-presets.7.rst
+++ b/Help/manual/cmake-presets.7.rst
@@ -308,6 +308,11 @@ Format
Path to the project source directory's parent directory.
+ ``${sourceDirName}``
+
+ The last filename component of ``${sourceDir}``. For example, if
+ ``${sourceDir}`` is ``/path/to/source``, this would be ``source``.
+
``${presetName}``
Name specified in the preset's ``name`` field.