cmake/Help/variable/CMAKE_INCLUDE_CURRENT_DIR.rst

14 lines
580 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
CMAKE_INCLUDE_CURRENT_DIR
-------------------------
2018-04-23 21:13:27 +02:00
Automatically add the current source and build directories to the include path.
2014-08-03 19:52:23 +02:00
2015-11-17 17:22:37 +01:00
If this variable is enabled, CMake automatically adds
:variable:`CMAKE_CURRENT_SOURCE_DIR` and :variable:`CMAKE_CURRENT_BINARY_DIR`
to the include path for each directory. These additional include
2014-08-03 19:52:23 +02:00
directories do not propagate down to subdirectories. This is useful
mainly for out-of-source builds, where files generated into the build
tree are included by files located in the source tree.
2015-11-17 17:22:37 +01:00
By default ``CMAKE_INCLUDE_CURRENT_DIR`` is ``OFF``.