summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-10 20:05:47 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-09-10 20:05:53 (GMT)
commite32f4da74a69b2fa80e33da286f8f06671d0a8b5 (patch)
treecd38871431b39aa2c155486d61a5433589c5338e /Help
parent5b3644fba6b3a9eb56070d8ba8f3b9b6281ba62b (diff)
parent0a5c3e3b979e89889ff9fe8a6e50c1c6e8cf8795 (diff)
downloadCMake-e32f4da74a69b2fa80e33da286f8f06671d0a8b5.zip
CMake-e32f4da74a69b2fa80e33da286f8f06671d0a8b5.tar.gz
CMake-e32f4da74a69b2fa80e33da286f8f06671d0a8b5.tar.bz2
Merge topic 'fix_add_library_documentation'
0a5c3e3b97 Help: add_library(<name> OBJECT) can omit the source files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5212
Diffstat (limited to 'Help')
-rw-r--r--Help/command/add_library.rst4
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