mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
Add support for PRIVATE header sets, analogous to the existing INTERFACE header sets support. A key difference between the two is the way they handle build and usage requirements. INTERFACE header sets rely on the original target's INTERFACE, whereas PRIVATE header sets copy across various properties from the original target. Generated files need special handling for PRIVATE header sets. Add a dependency on the original target to the verification target to ensure such generated files will exist. Fixes: #23448
6 lines
208 B
CMake
6 lines
208 B
CMake
enable_language(C)
|
|
|
|
add_library(nonexistent STATIC lib.c)
|
|
target_sources(nonexistent PRIVATE FILE_SET a TYPE HEADERS FILES a.h)
|
|
set_property(TARGET nonexistent PROPERTY PRIVATE_HEADER_SETS_TO_VERIFY "a;c;b")
|