mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 05:39:57 -05:00
Help: Clarify file() command multi-value argument placeholders
Use `<placeholder>...` syntax to imply "zero or more", as we do elsewhere.
This commit is contained in:
+34
-34
@@ -32,14 +32,14 @@ Synopsis
|
|||||||
|
|
||||||
`Writing`_
|
`Writing`_
|
||||||
file({`WRITE`_ | `APPEND`_} <filename> <content>...)
|
file({`WRITE`_ | `APPEND`_} <filename> <content>...)
|
||||||
file({`TOUCH`_ | `TOUCH_NOCREATE`_} [<file>...])
|
file({`TOUCH`_ | `TOUCH_NOCREATE`_} <file>...)
|
||||||
file(`GENERATE`_ OUTPUT <output-file> [...])
|
file(`GENERATE`_ OUTPUT <output-file> [...])
|
||||||
file(`CONFIGURE`_ OUTPUT <output-file> CONTENT <content> [...])
|
file(`CONFIGURE`_ OUTPUT <output-file> CONTENT <content> [...])
|
||||||
|
|
||||||
`Filesystem`_
|
`Filesystem`_
|
||||||
file({`GLOB`_ | `GLOB_RECURSE`_} <out-var> [...] [<globbing-expr>...])
|
file({`GLOB`_ | `GLOB_RECURSE`_} <out-var> [...] <globbing-expr>...)
|
||||||
file(`MAKE_DIRECTORY`_ [<dir>...])
|
file(`MAKE_DIRECTORY`_ <directories>...)
|
||||||
file({`REMOVE`_ | `REMOVE_RECURSE`_ } [<files>...])
|
file({`REMOVE`_ | `REMOVE_RECURSE`_ } <files>...)
|
||||||
file(`RENAME`_ <oldname> <newname> [...])
|
file(`RENAME`_ <oldname> <newname> [...])
|
||||||
file(`COPY_FILE`_ <oldname> <newname> [...])
|
file(`COPY_FILE`_ <oldname> <newname> [...])
|
||||||
file({`COPY`_ | `INSTALL`_} <file>... DESTINATION <dir> [...])
|
file({`COPY`_ | `INSTALL`_} <file>... DESTINATION <dir> [...])
|
||||||
@@ -80,7 +80,7 @@ Reading
|
|||||||
(``a`` through ``f``) are in lowercase.
|
(``a`` through ``f``) are in lowercase.
|
||||||
|
|
||||||
.. signature::
|
.. signature::
|
||||||
file(STRINGS <filename> <variable> [<options>...])
|
file(STRINGS <filename> <variable> <options>...)
|
||||||
|
|
||||||
Parse a list of ASCII strings from ``<filename>`` and store it in
|
Parse a list of ASCII strings from ``<filename>`` and store it in
|
||||||
``<variable>``. Binary data in the file are ignored. Carriage return
|
``<variable>``. Binary data in the file are ignored. Carriage return
|
||||||
@@ -165,17 +165,17 @@ Reading
|
|||||||
[RESOLVED_DEPENDENCIES_VAR <deps_var>]
|
[RESOLVED_DEPENDENCIES_VAR <deps_var>]
|
||||||
[UNRESOLVED_DEPENDENCIES_VAR <unresolved_deps_var>]
|
[UNRESOLVED_DEPENDENCIES_VAR <unresolved_deps_var>]
|
||||||
[CONFLICTING_DEPENDENCIES_PREFIX <conflicting_deps_prefix>]
|
[CONFLICTING_DEPENDENCIES_PREFIX <conflicting_deps_prefix>]
|
||||||
[EXECUTABLES [<executable_files>...]]
|
[EXECUTABLES <executable_files>...]
|
||||||
[LIBRARIES [<library_files>...]]
|
[LIBRARIES <library_files>...]
|
||||||
[MODULES [<module_files>...]]
|
[MODULES <module_files>...]
|
||||||
[DIRECTORIES [<directories>...]]
|
[DIRECTORIES <directories>...]
|
||||||
[BUNDLE_EXECUTABLE <bundle_executable_file>]
|
[BUNDLE_EXECUTABLE <bundle_executable_file>]
|
||||||
[PRE_INCLUDE_REGEXES [<regexes>...]]
|
[PRE_INCLUDE_REGEXES <regexes>...]
|
||||||
[PRE_EXCLUDE_REGEXES [<regexes>...]]
|
[PRE_EXCLUDE_REGEXES <regexes>...]
|
||||||
[POST_INCLUDE_REGEXES [<regexes>...]]
|
[POST_INCLUDE_REGEXES <regexes>...]
|
||||||
[POST_EXCLUDE_REGEXES [<regexes>...]]
|
[POST_EXCLUDE_REGEXES <regexes>...]
|
||||||
[POST_INCLUDE_FILES [<files>...]]
|
[POST_INCLUDE_FILES <files>...]
|
||||||
[POST_EXCLUDE_FILES [<files>...]]
|
[POST_EXCLUDE_FILES <files>...]
|
||||||
)
|
)
|
||||||
|
|
||||||
Please note that this sub-command is not intended to be used in project mode.
|
Please note that this sub-command is not intended to be used in project mode.
|
||||||
@@ -210,7 +210,7 @@ Reading
|
|||||||
of paths that were found for that filename are stored in
|
of paths that were found for that filename are stored in
|
||||||
``<conflicting_deps_prefix>_<filename>``.
|
``<conflicting_deps_prefix>_<filename>``.
|
||||||
|
|
||||||
``EXECUTABLES <executable_files>``
|
``EXECUTABLES <executable_files>...``
|
||||||
List of executable files to read for dependencies. These are executables
|
List of executable files to read for dependencies. These are executables
|
||||||
that are typically created with :command:`add_executable`, but they do
|
that are typically created with :command:`add_executable`, but they do
|
||||||
not have to be created by CMake. On Apple platforms, the paths to these
|
not have to be created by CMake. On Apple platforms, the paths to these
|
||||||
@@ -218,14 +218,14 @@ Reading
|
|||||||
resolving the libraries. Specifying any kind of library (``STATIC``,
|
resolving the libraries. Specifying any kind of library (``STATIC``,
|
||||||
``MODULE``, or ``SHARED``) here will result in undefined behavior.
|
``MODULE``, or ``SHARED``) here will result in undefined behavior.
|
||||||
|
|
||||||
``LIBRARIES <library_files>``
|
``LIBRARIES <library_files>...``
|
||||||
List of library files to read for dependencies. These are libraries that
|
List of library files to read for dependencies. These are libraries that
|
||||||
are typically created with :command:`add_library(SHARED)`, but they do
|
are typically created with :command:`add_library(SHARED)`, but they do
|
||||||
not have to be created by CMake. Specifying ``STATIC`` libraries,
|
not have to be created by CMake. Specifying ``STATIC`` libraries,
|
||||||
``MODULE`` libraries, or executables here will result in undefined
|
``MODULE`` libraries, or executables here will result in undefined
|
||||||
behavior.
|
behavior.
|
||||||
|
|
||||||
``MODULES <module_files>``
|
``MODULES <module_files>...``
|
||||||
List of loadable module files to read for dependencies. These are modules
|
List of loadable module files to read for dependencies. These are modules
|
||||||
that are typically created with :command:`add_library(MODULE)`, but they
|
that are typically created with :command:`add_library(MODULE)`, but they
|
||||||
do not have to be created by CMake. They are typically used by calling
|
do not have to be created by CMake. They are typically used by calling
|
||||||
@@ -233,7 +233,7 @@ Reading
|
|||||||
Specifying ``STATIC`` libraries, ``SHARED`` libraries, or executables
|
Specifying ``STATIC`` libraries, ``SHARED`` libraries, or executables
|
||||||
here will result in undefined behavior.
|
here will result in undefined behavior.
|
||||||
|
|
||||||
``DIRECTORIES <directories>``
|
``DIRECTORIES <directories>...``
|
||||||
List of additional directories to search for dependencies. On Linux
|
List of additional directories to search for dependencies. On Linux
|
||||||
platforms, these directories are searched if the dependency is not found
|
platforms, these directories are searched if the dependency is not found
|
||||||
in any of the other usual paths. If it is found in such a directory, a
|
in any of the other usual paths. If it is found in such a directory, a
|
||||||
@@ -256,30 +256,30 @@ Reading
|
|||||||
The following arguments specify filters for including or excluding libraries
|
The following arguments specify filters for including or excluding libraries
|
||||||
to be resolved. See below for a full description of how they work.
|
to be resolved. See below for a full description of how they work.
|
||||||
|
|
||||||
``PRE_INCLUDE_REGEXES <regexes>``
|
``PRE_INCLUDE_REGEXES <regexes>...``
|
||||||
List of pre-include regexes through which to filter the names of
|
List of pre-include regexes through which to filter the names of
|
||||||
not-yet-resolved dependencies.
|
not-yet-resolved dependencies.
|
||||||
|
|
||||||
``PRE_EXCLUDE_REGEXES <regexes>``
|
``PRE_EXCLUDE_REGEXES <regexes>...``
|
||||||
List of pre-exclude regexes through which to filter the names of
|
List of pre-exclude regexes through which to filter the names of
|
||||||
not-yet-resolved dependencies.
|
not-yet-resolved dependencies.
|
||||||
|
|
||||||
``POST_INCLUDE_REGEXES <regexes>``
|
``POST_INCLUDE_REGEXES <regexes>...``
|
||||||
List of post-include regexes through which to filter the names of
|
List of post-include regexes through which to filter the names of
|
||||||
resolved dependencies.
|
resolved dependencies.
|
||||||
|
|
||||||
``POST_EXCLUDE_REGEXES <regexes>``
|
``POST_EXCLUDE_REGEXES <regexes>...``
|
||||||
List of post-exclude regexes through which to filter the names of
|
List of post-exclude regexes through which to filter the names of
|
||||||
resolved dependencies.
|
resolved dependencies.
|
||||||
|
|
||||||
``POST_INCLUDE_FILES <files>``
|
``POST_INCLUDE_FILES <files>...``
|
||||||
.. versionadded:: 3.21
|
.. versionadded:: 3.21
|
||||||
|
|
||||||
List of post-include filenames through which to filter the names of
|
List of post-include filenames through which to filter the names of
|
||||||
resolved dependencies. Symlinks are resolved when attempting to match
|
resolved dependencies. Symlinks are resolved when attempting to match
|
||||||
these filenames.
|
these filenames.
|
||||||
|
|
||||||
``POST_EXCLUDE_FILES <files>``
|
``POST_EXCLUDE_FILES <files>...``
|
||||||
.. versionadded:: 3.21
|
.. versionadded:: 3.21
|
||||||
|
|
||||||
List of post-exclude filenames through which to filter the names of
|
List of post-exclude filenames through which to filter the names of
|
||||||
@@ -486,8 +486,8 @@ Writing
|
|||||||
to update the file only when its content changes.
|
to update the file only when its content changes.
|
||||||
|
|
||||||
.. signature::
|
.. signature::
|
||||||
file(TOUCH [<files>...])
|
file(TOUCH <files>...)
|
||||||
file(TOUCH_NOCREATE [<files>...])
|
file(TOUCH_NOCREATE <files>...)
|
||||||
|
|
||||||
.. versionadded:: 3.12
|
.. versionadded:: 3.12
|
||||||
|
|
||||||
@@ -638,10 +638,10 @@ Filesystem
|
|||||||
.. signature::
|
.. signature::
|
||||||
file(GLOB <variable>
|
file(GLOB <variable>
|
||||||
[LIST_DIRECTORIES true|false] [RELATIVE <path>] [CONFIGURE_DEPENDS]
|
[LIST_DIRECTORIES true|false] [RELATIVE <path>] [CONFIGURE_DEPENDS]
|
||||||
[<globbing-expressions>...])
|
<globbing-expressions>...)
|
||||||
file(GLOB_RECURSE <variable> [FOLLOW_SYMLINKS]
|
file(GLOB_RECURSE <variable> [FOLLOW_SYMLINKS]
|
||||||
[LIST_DIRECTORIES true|false] [RELATIVE <path>] [CONFIGURE_DEPENDS]
|
[LIST_DIRECTORIES true|false] [RELATIVE <path>] [CONFIGURE_DEPENDS]
|
||||||
[<globbing-expressions>...])
|
<globbing-expressions>...)
|
||||||
|
|
||||||
Generate a list of files that match the ``<globbing-expressions>`` and
|
Generate a list of files that match the ``<globbing-expressions>`` and
|
||||||
store it into the ``<variable>``. Globbing expressions are similar to
|
store it into the ``<variable>``. Globbing expressions are similar to
|
||||||
@@ -703,13 +703,13 @@ Filesystem
|
|||||||
============== ======================================================
|
============== ======================================================
|
||||||
|
|
||||||
.. signature::
|
.. signature::
|
||||||
file(MAKE_DIRECTORY [<directories>...])
|
file(MAKE_DIRECTORY <directories>...)
|
||||||
|
|
||||||
Create the given directories and their parents as needed.
|
Create the given directories and their parents as needed.
|
||||||
|
|
||||||
.. signature::
|
.. signature::
|
||||||
file(REMOVE [<files>...])
|
file(REMOVE <files>...)
|
||||||
file(REMOVE_RECURSE [<files>...])
|
file(REMOVE_RECURSE <files>...)
|
||||||
|
|
||||||
Remove the given files. The ``REMOVE_RECURSE`` mode will remove the given
|
Remove the given files. The ``REMOVE_RECURSE`` mode will remove the given
|
||||||
files and directories, including non-empty directories. No error is emitted
|
files and directories, including non-empty directories. No error is emitted
|
||||||
@@ -1012,8 +1012,8 @@ Transfer
|
|||||||
^^^^^^^^
|
^^^^^^^^
|
||||||
|
|
||||||
.. signature::
|
.. signature::
|
||||||
file(DOWNLOAD <url> [<file>] [<options>...])
|
file(DOWNLOAD <url> [<file>] <options>...)
|
||||||
file(UPLOAD <file> <url> [<options>...])
|
file(UPLOAD <file> <url> <options>...)
|
||||||
|
|
||||||
The ``DOWNLOAD`` subcommand downloads the given ``<url>`` to a local
|
The ``DOWNLOAD`` subcommand downloads the given ``<url>`` to a local
|
||||||
``<file>``. The ``UPLOAD`` mode uploads a local ``<file>`` to a given
|
``<file>``. The ``UPLOAD`` mode uploads a local ``<file>`` to a given
|
||||||
|
|||||||
Reference in New Issue
Block a user