CMake/Tests/RunCMake/target_sources/FileSetWrongSyntax.cmake
Ben Boeckel 7e3f9aa1b2 target_sources: give a hint when a file named FILE_SET is not found
`FILE_SET` is only supported within `target_sources()` and only directly
after a visibility keyword or another `FILE_SET`. Give a hint as to what
might be wrong if a file named `FILE_SET` cannot be found for any
reason.

Fixes: #24539
2023-02-24 17:43:22 -05:00

5 lines
109 B
CMake

enable_language(C)
add_library(lib1 STATIC)
target_sources(lib1 PRIVATE empty.c FILE_SET h1.h TYPE HEADERS)