diff options
author | Brad King <brad.king@kitware.com> | 2023-01-26 14:16:17 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-01-26 14:16:37 (GMT) |
commit | ed09c0aecd7c68b3ad2af805fda1449f799a6eae (patch) | |
tree | ba8814ba94211d7feef139140c2e36f64a36bea6 | |
parent | 6dca2dd86dfbbdb7199b88e7d34318b92c862b41 (diff) | |
parent | c89d467bf25bd6b7c3bcebcb81f7d05ae073a622 (diff) | |
download | CMake-ed09c0aecd7c68b3ad2af805fda1449f799a6eae.zip CMake-ed09c0aecd7c68b3ad2af805fda1449f799a6eae.tar.gz CMake-ed09c0aecd7c68b3ad2af805fda1449f799a6eae.tar.bz2 |
Merge topic 'configure_file_docs_use_target_inc_dirs'
c89d467bf2 Help: configure_file doc example use `target_include_directories`
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8121
-rw-r--r-- | Help/command/configure_file.rst | 4 |
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>``. |