Target property backtraces wrong when set across directories
File API Backtrace Graph is missing subdirectory CMake Files but the Target object includes the subdirectory's source files.
When CMake 3.24 is run against a project with source files in the base directory and in a subdirectory, the File API's backtrace graph only includes the base directory CMakeLists. However, the target object includes the source code files from the subdirectory with a non-existent backtrace id. See below for screenshots of the generated JSON. Backtrace 3 doesn't exist in any of the json files. There is only one target for the project.
Backtrace Graph
Sources from Target
Base CMakeLists
Src Directory CMakeLists
This behavior is consistent across multiple machines. It seems like there is a missing backtrace graph which isn't output to json by the File API. I've attached the simple project we're using to reproduce this issue.demo.zip