diff options
author | Asit Dhal <dhal.asitk@gmail.com> | 2020-12-19 12:44:35 (GMT) |
---|---|---|
committer | Asit Dhal <dhal.asitk@gmail.com> | 2020-12-19 13:51:39 (GMT) |
commit | b68699b71799762812fd58a6f257bc7cc9820761 (patch) | |
tree | 6692ccde6094d379de31bc0f531658a8b0461f6c /Help | |
parent | d231f429f10e920e08607a7371f6f7e7e17aa93b (diff) | |
download | CMake-b68699b71799762812fd58a6f257bc7cc9820761.zip CMake-b68699b71799762812fd58a6f257bc7cc9820761.tar.gz CMake-b68699b71799762812fd58a6f257bc7cc9820761.tar.bz2 |
target_include_directories: Support AFTER option
Fixes: #20134
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/target_include_directories.rst | 6 | ||||
-rw-r--r-- | Help/release/dev/after-option-in-target_include-directories.rst | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/Help/command/target_include_directories.rst b/Help/command/target_include_directories.rst index a8a5c83..3e53b2e 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 0000000..f61026c --- /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``. |