Help: Add useful links to IMPORTED targets and usage requirements.

This commit is contained in:
Stephen Kelly 2014-12-04 23:30:20 +01:00
parent b96b025b2a
commit 31452416ba
1 changed files with 3 additions and 4 deletions

View File

@ -730,10 +730,9 @@ below. This is what most of the existing find modules provided by CMake
do. do.
The more modern approach is to behave as much like The more modern approach is to behave as much like
``<package>Config.cmake`` files as possible, by providing imported :ref:`config file packages <Config File Packages>` files as possible, by
targets. As well as matching how ``*Config.cmake`` files work, the providing :ref:`imported target <Imported targets>`. This has the advantage
libraries, include directories and compile definitions are all set just of propagating :ref:`Target Usage Requirements` to consumers.
by using the target in a :command:`target_link_libraries` call.
In either case (or even when providing both variables and imported In either case (or even when providing both variables and imported
targets), find modules should provide backwards compatibility with old targets), find modules should provide backwards compatibility with old