
`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
5 lines
109 B
CMake
5 lines
109 B
CMake
enable_language(C)
|
|
|
|
add_library(lib1 STATIC)
|
|
target_sources(lib1 PRIVATE empty.c FILE_SET h1.h TYPE HEADERS)
|