summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Wolf <mail@kai-wolf.me>2018-03-11 09:06:29 +0100
committerBrad King <brad.king@kitware.com>2018-03-12 10:23:21 -0400
commit78756429abe1d0c41596d48315fec96e72cc65f7 (patch)
tree4905c0139b63378974d024c92b3af39945415f29
parentc5541cf0da1093635fea7da5a40e64e481b5477e (diff)
downloadcmake-78756429abe1d0c41596d48315fec96e72cc65f7.tar.gz
Help: Adapt cmake-buildsystem(7) to new IMPORTED targets features
Since commit v3.11.0-rc1~433^2~2 (Teach target_* commands to set INTERFACE properties of IMPORTED targets, 2017-09-18) it is now possible to use the customary `target_*` commands for adjusting the settings of an IMPORTED target. Update documentation accordingly.
-rw-r--r--Help/manual/cmake-buildsystem.7.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/Help/manual/cmake-buildsystem.7.rst b/Help/manual/cmake-buildsystem.7.rst
index ae538edc2d..b672ea6497 100644
--- a/Help/manual/cmake-buildsystem.7.rst
+++ b/Help/manual/cmake-buildsystem.7.rst
@@ -831,12 +831,11 @@ Imported Targets
An :prop_tgt:`IMPORTED` target represents a pre-existing dependency. Usually
such targets are defined by an upstream package and should be treated as
-immutable. It is not possible to use an :prop_tgt:`IMPORTED` target in the
-left-hand-side of the :command:`target_compile_definitions`,
-:command:`target_include_directories`, :command:`target_compile_options` or
-:command:`target_link_libraries` commands, as that would be an attempt to
-modify it. :prop_tgt:`IMPORTED` targets are designed to be used only in the
-right-hand-side of those commands.
+immutable. After declaring an :prop_tgt:`IMPORTED` target one can adjust its
+target properties by using the customary commands such as
+:command:`target_compile_definitions`, :command:`target_include_directories`,
+:command:`target_compile_options` or :command:`target_link_libraries` just like
+with any other regular target.
:prop_tgt:`IMPORTED` targets may have the same usage requirement properties
populated as binary targets, such as