diff options
author | Brad King <brad.king@kitware.com> | 2018-03-01 14:25:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-01 14:27:50 (GMT) |
commit | bafe655b11c876b45a5ce1fbaf4643593bdd22a3 (patch) | |
tree | fe91cba040f960f97d85c36e8e5635e8bdeb31d9 /Help/command/add_library.rst | |
parent | 57538224d06225ce039f9c883465c6743186c2f4 (diff) | |
download | CMake-bafe655b11c876b45a5ce1fbaf4643593bdd22a3.zip CMake-bafe655b11c876b45a5ce1fbaf4643593bdd22a3.tar.gz CMake-bafe655b11c876b45a5ce1fbaf4643593bdd22a3.tar.bz2 |
Help: Document linking behavior of OBJECT libraries
Inspired-by: Deniz Bahadir <dbahadir@benocs.com>
Issue: #14778
Diffstat (limited to 'Help/command/add_library.rst')
-rw-r--r-- | Help/command/add_library.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Help/command/add_library.rst b/Help/command/add_library.rst index 3706153..8fa0df7 100644 --- a/Help/command/add_library.rst +++ b/Help/command/add_library.rst @@ -110,10 +110,10 @@ along with those compiled from their own sources. Object libraries may contain only sources that compile, header files, and other files that would not affect linking of a normal library (e.g. ``.txt``). They may contain custom commands generating such sources, but not -``PRE_BUILD``, ``PRE_LINK``, or ``POST_BUILD`` commands. Object libraries -cannot be linked. Some native build systems (such as Xcode) may not like -targets that have only object files, so consider adding at least one real -source file to any target that references ``$<TARGET_OBJECTS:objlib>``. +``PRE_BUILD``, ``PRE_LINK``, or ``POST_BUILD`` commands. Some native build +systems (such as Xcode) may not like targets that have only object files, so +consider adding at least one real source file to any target that references +``$<TARGET_OBJECTS:objlib>``. Alias Libraries ^^^^^^^^^^^^^^^ |