Skip to content

Proposal: Use `target_include_directories` in `configure_file` documentation

On the bottom of this CMake docs page, it is stated that:

One may then use the include_directories() command to specify the output directory as an include directory:

include_directories(${CMAKE_CURRENT_BINARY_DIR})

In my opinion, it would be cleaner to write:

One may then use the target_include_directories() command to specify the output directory as an include directory:

target_include_directories(<tgt> [PUBLIC | PRIVATE | INTERFACE] [SYSTEM] "${CMAKE_CURRENT_BINARY_DIR}")

However, this may be related to personal preference. Let me know.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information