CMP0115 triggers for configured source files
See this toy example, it will trigger a CMP0115 warning because cmake cannot find main.c
.
configure_file(main.c.in main.c)
add_executable(exe main.c)
If I manually set the GENERATED
property then no warning comes.
configure_file(main.c.in main.c)
set_source_files_properties(main.c PROPERTIES GENERATED TRUE)
add_executable(exe main.c)
Shouldn't configure_file
set GENERATED
automatically?
Edited by Brad King