diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2017-12-01 15:36:01 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2017-12-01 15:37:15 (GMT) |
commit | 4c40ab261c94a72ba5dcd9fab47c035d94a22964 (patch) | |
tree | 8b42b4f0c523bc200cb68cda5671d4a2a186f86d | |
parent | a4faf8638744edf7e3dd8931b55ba87e8f7738be (diff) | |
download | CMake-4c40ab261c94a72ba5dcd9fab47c035d94a22964.zip CMake-4c40ab261c94a72ba5dcd9fab47c035d94a22964.tar.gz CMake-4c40ab261c94a72ba5dcd9fab47c035d94a22964.tar.bz2 |
add_library: mention that Xcode requires a real source file
The docs mentioned that it happened, but not when. Mention Xcode since
it is the culprit today.
See #16524.
-rw-r--r-- | Help/command/add_library.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Help/command/add_library.rst b/Help/command/add_library.rst index 4e85d8c..3706153 100644 --- a/Help/command/add_library.rst +++ b/Help/command/add_library.rst @@ -111,9 +111,9 @@ 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 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>``. +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>``. Alias Libraries ^^^^^^^^^^^^^^^ |