mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-10 02:19:10 -05:00
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.
This commit is contained in:
@@ -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``).
|
that would not affect linking of a normal library (e.g. ``.txt``).
|
||||||
They may contain custom commands generating such sources, but not
|
They may contain custom commands generating such sources, but not
|
||||||
``PRE_BUILD``, ``PRE_LINK``, or ``POST_BUILD`` commands. Object libraries
|
``PRE_BUILD``, ``PRE_LINK``, or ``POST_BUILD`` commands. Object libraries
|
||||||
cannot be linked. Some native build systems may not like targets that
|
cannot be linked. Some native build systems (such as Xcode) may not like
|
||||||
have only object files, so consider adding at least one real source file
|
targets that have only object files, so consider adding at least one real
|
||||||
to any target that references ``$<TARGET_OBJECTS:objlib>``.
|
source file to any target that references ``$<TARGET_OBJECTS:objlib>``.
|
||||||
|
|
||||||
Alias Libraries
|
Alias Libraries
|
||||||
^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^
|
||||||
|
|||||||
Reference in New Issue
Block a user