summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2023-01-25 17:29:56 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2023-01-25 17:30:15 (GMT)
commitc89d467bf25bd6b7c3bcebcb81f7d05ae073a622 (patch)
treeea0915f2bfeed12ea7203031d594ab2af5e306f5 /Help
parent950effe434623b50a1c85e2c53ed592210e79ceb (diff)
downloadCMake-c89d467bf25bd6b7c3bcebcb81f7d05ae073a622.zip
CMake-c89d467bf25bd6b7c3bcebcb81f7d05ae073a622.tar.gz
CMake-c89d467bf25bd6b7c3bcebcb81f7d05ae073a622.tar.bz2
Help: configure_file doc example use `target_include_directories`
Fixes #24351
Diffstat (limited to 'Help')
-rw-r--r--Help/command/configure_file.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Help/command/configure_file.rst b/Help/command/configure_file.rst
index adc2a66..6f4cedf 100644
--- a/Help/command/configure_file.rst
+++ b/Help/command/configure_file.rst
@@ -174,12 +174,12 @@ Otherwise it will contain:
/* #undef FOO_ENABLE */
/* #undef FOO_STRING */
-One may then use the :command:`include_directories` command to
+One may then use the :command:`target_include_directories` command to
specify the output directory as an include directory:
.. code-block:: cmake
- include_directories(${CMAKE_CURRENT_BINARY_DIR})
+ target_include_directories(<target> [SYSTEM] <INTERFACE|PUBLIC|PRIVATE> "${CMAKE_CURRENT_BINARY_DIR}")
so that sources may include the header as ``#include <foo.h>``.