target_sources: Misleading backtrace on missing source file
The following session demonstrates the problem:
$ cat ../CMakeLists.txt
cmake_minimum_required(VERSION 3.25)
project(Example C)
add_executable(foo foo.c)
target_sources(foo PRIVATE missing.c)
$ ls ../foo.c
../foo.c
$ cmake ..
...
-- Configuring done
CMake Error at CMakeLists.txt:3 (add_executable):
Cannot find source file:
missing.c
The backtrace points at the location where the executable was added, not where the missing source was specified.