[Cmake-commits] CMake branch, next, updated. v3.2.1-1456-g0520edf

Brad King brad.king at kitware.com
Fri Apr 3 13:57:42 EDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  0520edf6a7129170c27e1ea94cebdcfaae7a39a4 (commit)
       via  623fdc5c34dbf45ad40ea12bac8ba437bd53af96 (commit)
      from  91576842db3ec2444b6aaf92a4558c3b8fa15d00 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0520edf6a7129170c27e1ea94cebdcfaae7a39a4
commit 0520edf6a7129170c27e1ea94cebdcfaae7a39a4
Merge: 9157684 623fdc5
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Fri Apr 3 13:57:42 2015 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Fri Apr 3 13:57:42 2015 -0400

    Merge topic 'doc-target_link_libraries' into next
    
    623fdc5c fixup! Help: Revise target_link_libraries command documentation


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=623fdc5c34dbf45ad40ea12bac8ba437bd53af96
commit 623fdc5c34dbf45ad40ea12bac8ba437bd53af96
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Fri Apr 3 13:57:26 2015 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Fri Apr 3 13:57:26 2015 -0400

    fixup! Help: Revise target_link_libraries command documentation

diff --git a/Help/command/target_link_libraries.rst b/Help/command/target_link_libraries.rst
index e0b1667..393c8b4 100644
--- a/Help/command/target_link_libraries.rst
+++ b/Help/command/target_link_libraries.rst
@@ -37,10 +37,10 @@ Each ``<item>`` may be:
 * **A full path to a library file**: The generated link line will
   normally preserve the full path to the file.  However, there are
   some cases where CMake must ask the linker to search for the library
-  (e.g. ``-lfoo``), such as when it appears in a system library directory
-  that the compiler front-end may replace with an alternative.
-  Either way, the buildsystem will have a dependency to re-link
-  ``<target>`` if the library file changes.
+  (e.g. ``/usr/lib/libfoo.so`` becomes ``-lfoo``), such as when it
+  appears in a system library directory that the compiler front-end
+  may replace with an alternative.  Either way, the buildsystem will
+  have a dependency to re-link ``<target>`` if the library file changes.
 
   If the library file is in a Mac OSX framework, the ``Headers`` directory
   of the framework will also be processed as a
@@ -48,7 +48,7 @@ Each ``<item>`` may be:
   effect as passing the framework directory as an include directory.
 
 * **A plain library name**: The generated link line will ask the linker
-  to search for the library (e.g. ``-lfoo``).
+  to search for the library (e.g. ``foo`` becomes ``-lfoo`` or ``foo.lib``).
 
 * **A link flag**: Item names starting with ``-``, but not ``-l`` or
   ``-framework``, are treated as linker flags.  Note that such flags will
@@ -67,6 +67,11 @@ Each ``<item>`` may be:
   rules by creating and linking to
   :ref:`IMPORTED library targets <Imported Targets>`.
 
+Items containing ``::``, such as ``Foo::Bar``, are assumed to be
+:ref:`IMPORTED <Imported Targets>` or :ref:`ALIAS <Alias Targets>` library
+target names and will cause an error if no such target exists.
+See policy :policy:`CMP0028`.
+
 Arguments to ``target_link_libraries`` may use "generator expressions"
 with the syntax ``$<...>``.  Note however, that generator expressions
 will not be used in OLD handling of :policy:`CMP0003` or :policy:`CMP0004`.

-----------------------------------------------------------------------

Summary of changes:
 Help/command/target_link_libraries.rst |   15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list