summaryrefslogtreecommitdiff
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-22 14:13:02 +0000
committerKitware Robot <kwrobot@kitware.com>2020-12-22 09:13:08 -0500
commit72a28635b8a92ecf2bd14c18c6fca0a391391f85 (patch)
treebe9a8b0dff91b018fa0547ce7273c6c561963af9 /Help
parent3cf1a8c59ba8ebaeb86c41300cf3f78469a30310 (diff)
parentb68699b71799762812fd58a6f257bc7cc9820761 (diff)
downloadcmake-72a28635b8a92ecf2bd14c18c6fca0a391391f85.tar.gz
Merge topic 'issue-20134'
b68699b717 target_include_directories: Support AFTER option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5633
Diffstat (limited to 'Help')
-rw-r--r--Help/command/target_include_directories.rst6
-rw-r--r--Help/release/dev/after-option-in-target_include-directories.rst5
2 files changed, 8 insertions, 3 deletions
diff --git a/Help/command/target_include_directories.rst b/Help/command/target_include_directories.rst
index a8a5c8373a..3e53b2e4a1 100644
--- a/Help/command/target_include_directories.rst
+++ b/Help/command/target_include_directories.rst
@@ -5,7 +5,7 @@ Add include directories to a target.
.. code-block:: cmake
- target_include_directories(<target> [SYSTEM] [BEFORE]
+ target_include_directories(<target> [SYSTEM] [AFTER|BEFORE]
<INTERFACE|PUBLIC|PRIVATE> [items1...]
[<INTERFACE|PUBLIC|PRIVATE> [items2...] ...])
@@ -14,8 +14,8 @@ The named ``<target>`` must have been created by a command such
as :command:`add_executable` or :command:`add_library` and must not be an
:ref:`ALIAS target <Alias Targets>`.
-If ``BEFORE`` is specified, the content will be prepended to the property
-instead of being appended.
+By using ``AFTER`` or ``BEFORE`` explicitly, you can select between appending
+and prepending, independent of the default.
The ``INTERFACE``, ``PUBLIC`` and ``PRIVATE`` keywords are required to specify
the scope of the following arguments. ``PRIVATE`` and ``PUBLIC`` items will
diff --git a/Help/release/dev/after-option-in-target_include-directories.rst b/Help/release/dev/after-option-in-target_include-directories.rst
new file mode 100644
index 0000000000..f61026c4e0
--- /dev/null
+++ b/Help/release/dev/after-option-in-target_include-directories.rst
@@ -0,0 +1,5 @@
+after-option-in-target_include-directories.rst
+----------------------------------------------
+
+* The :command:`target_include_directories` command gained a new option
+ ``AFTER``.