summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-08-27 18:01:51 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-08-27 18:01:57 (GMT)
commit07556f15674b7720f9bd7c6b63aedec5d53d8597 (patch)
tree100695c7b096c9361dc95d30ceae93d466243eb3
parentfa2ecf7fceacc135df5c898d70eeafdcc21afb19 (diff)
parente558ada9774e0b47214d6cf395a7a926a8583ad6 (diff)
downloadCMake-07556f15674b7720f9bd7c6b63aedec5d53d8597.zip
CMake-07556f15674b7720f9bd7c6b63aedec5d53d8597.tar.gz
CMake-07556f15674b7720f9bd7c6b63aedec5d53d8597.tar.bz2
Merge topic 'doc-include_directories-alternative'
e558ada977 Help: Document alternative to include_directories Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2304
-rw-r--r--Help/command/include_directories.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Help/command/include_directories.rst b/Help/command/include_directories.rst
index f694934..e797b5d 100644
--- a/Help/command/include_directories.rst
+++ b/Help/command/include_directories.rst
@@ -33,3 +33,9 @@ Arguments to ``include_directories`` may use "generator expressions" with
the syntax "$<...>". See the :manual:`cmake-generator-expressions(7)`
manual for available expressions. See the :manual:`cmake-buildsystem(7)`
manual for more on defining buildsystem properties.
+
+.. note::
+
+ Prefer the :command:`target_include_directories` command to add include
+ directories to individual targets and optionally propagate/export them
+ to dependents.