diff --git a/Help/command/configure_file.rst b/Help/command/configure_file.rst index adc2a66289..6f4cedfa67 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( [SYSTEM] "${CMAKE_CURRENT_BINARY_DIR}") so that sources may include the header as ``#include ``.