I tried that, it doesn’t work.
See the code above, it has.
target_sources(foo PRIVATE "${response_file}")