diff options
author | Deniz Bahadir <dbahadir@benocs.com> | 2020-09-10 14:52:26 (GMT) |
---|---|---|
committer | Deniz Bahadir <dbahadir@benocs.com> | 2020-09-10 14:59:34 (GMT) |
commit | 0a5c3e3b979e89889ff9fe8a6e50c1c6e8cf8795 (patch) | |
tree | 3daec4f18d0e7473069b574ac088825f9527d97d /Help | |
parent | 487c71123006e6ea79b5734d60cd0731164ecaaa (diff) | |
download | CMake-0a5c3e3b979e89889ff9fe8a6e50c1c6e8cf8795.zip CMake-0a5c3e3b979e89889ff9fe8a6e50c1c6e8cf8795.tar.gz CMake-0a5c3e3b979e89889ff9fe8a6e50c1c6e8cf8795.tar.bz2 |
Help: add_library(<name> OBJECT) can omit the source files
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/add_library.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Help/command/add_library.rst b/Help/command/add_library.rst index f3df631..b7dfabc 100644 --- a/Help/command/add_library.rst +++ b/Help/command/add_library.rst @@ -14,7 +14,7 @@ Normal Libraries add_library(<name> [STATIC | SHARED | MODULE] [EXCLUDE_FROM_ALL] - [source1] [source2 ...]) + [<source>...]) Adds a library target called ``<name>`` to be built from the source files listed in the command invocation. (The source files can be omitted here @@ -69,7 +69,7 @@ Object Libraries .. code-block:: cmake - add_library(<name> OBJECT <src>...) + add_library(<name> OBJECT [<source>...]) Creates an :ref:`Object Library <Object Libraries>`. An object library compiles source files but does not archive or link their object files into a |