瀏覽代碼

Merge topic 'add_library-mention-xcode-objlib-behavior'

4c40ab26 add_library: mention that Xcode requires a real source file

Acked-by: Kitware Robot <[email protected]>
Acked-by: Tom Hughes <[email protected]>
Merge-request: !1549
Brad King 8 年之前
父節點
當前提交
e841ae823e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Help/command/add_library.rst

+ 3 - 3
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
 ^^^^^^^^^^^^^^^