Files
cmake/Help/release/dev/file-api-fileSetIndexes.rst
T
Tyler Yankee 9f4cf1cef7 fileAPI: Report full backtraces for sources in multiple file sets
Previously, if a single source file was added to multiple file sets via
multiple `target_sources` calls, only the first call originally adding
it to the target was stored in the backtrace graph and referenced by
index in the singular "backtrace" field.

Add a "backtraces" field expanding this to cover all command
invocations which associate the given source file with that target.
Preserve the original "backtrace" field for compatibility. Update
spellings in the test suite to check against both fields.

Issue: #27035
2026-05-12 16:45:13 -04:00

14 lines
740 B
ReStructuredText

file-api-fileSetIndexes
-----------------------
* The :manual:`cmake-file-api(7)` "codemodel" version 2 "target" "sources" and
"interfaceSources" objects gained new ``fileSetIndexes`` fields to support
sources belonging to multiple file sets. The ``fileSetIndex`` fields are
maintained for backwards compatibility only, and users are advised to port
to the new fields.
* The :manual:`cmake-file-api(7)` "codemodel" version 2 "target" "sources"
object gained a new ``backtraces`` field to represent multiple command
invocations which associate a single source for a given target with multiple
file sets. The ``backtrace`` field is maintained for backwards compatibility
only, and users are advised to port to the new field.