Merge topic 'codemodel-version-directory-target-objects'

4315076f2e fileapi: Add codemodelVersion fields to target and directory objects

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10928
This commit is contained in:
Brad King
2025-07-15 14:47:29 +00:00
committed by Kitware Robot
8 changed files with 120 additions and 39 deletions

View File

@@ -704,6 +704,19 @@ A codemodel "directory" object is referenced by a `"codemodel" version 2`_
object's ``directories`` array. Each "directory" object is a JSON object
with members:
``codemodelVersion``
This specifies the codemodel version this file is part of. It will match
the ``version`` field of the codemodel object kind that references this file.
It is a JSON object with the following members:
``major``
The codemodel major version.
``minor``
The codemodel minor version.
This field was added in codemodel version 2.9.
``paths``
A JSON object containing members:
@@ -980,6 +993,19 @@ A codemodel "target" object is referenced by a `"codemodel" version 2`_
object's ``targets`` array. Each "target" object is a JSON object
with members:
``codemodelVersion``
This specifies the codemodel version this file is part of. It will match
the ``version`` field of the codemodel object kind that references this file.
It is a JSON object with the following members:
``major``
The codemodel major version.
``minor``
The codemodel minor version.
This field was added in codemodel version 2.9.
``name``
A string specifying the logical name of the target.

View File

@@ -0,0 +1,8 @@
codemodel-version-directory-target-objects
------------------------------------------
* The :manual:`cmake-file-api(7)` "codemodel" version 2 ``version`` field has
been updated to 2.9.
* The :manual:`cmake-file-api(7)` "codemodel" version 2 "target" and
"directory" objects gained a new ``codemodelVersion`` field.