file(ARCHIVE_CREATE): add WORKING_DIRECTORY option

Fixes: #25260
Issue: #21653
This commit is contained in:
Yuri Witte
2024-09-05 05:06:04 -03:00
committed by Brad King
parent d65b5a8e03
commit d8a9aabd24
10 changed files with 49 additions and 9 deletions

View File

@@ -903,6 +903,7 @@ Archiving
[COMPRESSION <compression>
[COMPRESSION_LEVEL <compression-level>]]
[MTIME <mtime>]
[WORKING_DIRECTORY <dir>]
[VERBOSE])
:target: ARCHIVE_CREATE
:break: verbatim
@@ -946,6 +947,14 @@ Archiving
``MTIME <mtime>``
Specify the modification time recorded in tarball entries.
``WORKING_DIRECTORY <dir>``
.. versionadded:: 3.31
Specify the directory in which the archive creation operation will
be executed. Paths in the ``<paths>`` argument can be relative to
this directory. If this option is not provided, the current working
directory will be used by default.
``VERBOSE``
Enable verbose output from the archive operation.