소스 검색

Help/file: mention the working directory for `ARCHIVE_EXTRACT`

See: https://discourse.cmake.org/t/10135
Ben Boeckel 1 년 전
부모
커밋
189d28d77d
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      Help/command/file.rst

+ 7 - 0
Help/command/file.rst

@@ -1254,6 +1254,13 @@ Archiving
 
   ``LIST_ONLY`` will list the files in the archive rather than extract them.
 
+  .. note::
+    The working directory for this subcommand is the ``DESTINATION`` directory
+    (provided or computed) except when ``LIST_ONLY`` is specified. Therefore,
+    outside of script mode, it may be best to provide absolute paths to
+    ``INPUT`` archives as they are unlikely to be extracted where a relative
+    path works.
+
   .. versionadded:: 3.24
     The ``TOUCH`` option gives extracted files a current local
     timestamp instead of extracting file timestamps from the archive.