mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
Use the `IMPLICIT_DEPENDS` option of `add_custom_command` and place the command in a custom target. Verify that `INCLUDE_DIRECTORIES` of that custom target are honored. This is a case that was not really designed to work but happens to work, is useful, and makes sense. Add a test case make sure it continues to work. Issue: #16830
4 lines
115 B
CMake
4 lines
115 B
CMake
file(WRITE "${RunCMake_TEST_BINARY_DIR}/MakeCustomIncludes.h" [[
|
|
inline int MakeCustomIncludes() { return 2; }
|
|
]])
|