Browse Source

Merge topic 'fix_add_library_documentation'

0a5c3e3b97 Help: add_library(<name> OBJECT) can omit the source files

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5212
Brad King 5 years ago
parent
commit
e32f4da74a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Help/command/add_library.rst

+ 2 - 2
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