Merge topic 'doc-tll-flags'

8c03f157 Help: Clarify target_link_libraries treatment of flags (#15034)
This commit is contained in:
Brad King 2014-07-29 08:52:15 -04:00 committed by CMake Topic Stage
commit 99a9034759
1 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,10 @@ If a library name matches that of another target in the project a
dependency will automatically be added in the build system to make sure
the library being linked is up-to-date before the target links. Item names
starting with ``-``, but not ``-l`` or ``-framework``, are treated as
linker flags.
linker flags. Note that such flags will be treated like any other library
link item for purposes of transitive dependencies, so they are generally
safe to specify only as private link items that will not propagate to
dependents of ``<target>``.
A ``debug``, ``optimized``, or ``general`` keyword indicates that the
library immediately following it is to be used only for the