target_sources: Fix backtrace on missing source

If a source file is not found, the error message reports a backtrace. Previously the backtrace pointed at where the target was created. In the case of target_sources, the missing source may have been named elsewhere.

Fixes: #24538 (closed)

Merge request reports

Loading