diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-03-07 22:48:18 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-03-07 23:03:16 (GMT) |
commit | f54507c2f6826e9b2b021dbf3b3fa75dcdce22fe (patch) | |
tree | 017a3aebc0cb87ac32482c0f8c0cff70928baa75 /Help | |
parent | 7a8536e0eab97d5467dbcca9b14f1a9deaf934ae (diff) | |
download | CMake-f54507c2f6826e9b2b021dbf3b3fa75dcdce22fe.zip CMake-f54507c2f6826e9b2b021dbf3b3fa75dcdce22fe.tar.gz CMake-f54507c2f6826e9b2b021dbf3b3fa75dcdce22fe.tar.bz2 |
CMakePresets.json: Add ${fileDir} macro
Fixes: #23214
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-presets.7.rst | 5 | ||||
-rw-r--r-- | Help/release/3.23.rst | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Help/manual/cmake-presets.7.rst b/Help/manual/cmake-presets.7.rst index 4620984..03bb5aa 100644 --- a/Help/manual/cmake-presets.7.rst +++ b/Help/manual/cmake-presets.7.rst @@ -1053,6 +1053,11 @@ Recognized macros include: :variable:`CMAKE_HOST_SYSTEM_NAME`. This is allowed in preset files specifying version ``3`` or above. +``${fileDir}`` + + Path to the directory containing the preset file which contains the macro. + This is allowed in preset files specifying version ``4`` or above. + ``${dollar}`` A literal dollar sign (``$``). diff --git a/Help/release/3.23.rst b/Help/release/3.23.rst index b2928db..c3bee02 100644 --- a/Help/release/3.23.rst +++ b/Help/release/3.23.rst @@ -18,6 +18,9 @@ Presets * :manual:`cmake-presets(7)` files now have an optional ``include`` field, which allows the files to include other files. +* :manual:`cmake-presets(7)` files now support a ``${fileDir}`` macro, which + contains the directory containing the preset file. + * :manual:`cmake-presets(7)` gained support for specifying the ``resolvePackageReferences`` command line option in a build preset to control restoration behavior of package references from external package managers. |