You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: readme.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -158,14 +158,14 @@ Add something to the SBOM.
158
158
```cmake
159
159
sbom_add(
160
160
FILENAME <filename>
161
-
FILETYPE <type>
161
+
FILETYPE <type> [type2 ...]
162
162
[RELATIONSHIP <string>]
163
163
[SPDXID <id>]
164
164
)
165
165
```
166
166
167
167
-`FILENAME`: The file to add. It should be a relative path from `CMAKE_INSTALL_PREFIX`. Generator expressions are allowed.
168
-
-`FILETYPE`: The SPDX File Type. Refer to the [SPDX specification](https://spdx.github.io/spdx-spec/v2.3/).
168
+
-`FILETYPE`: One or more file types. Refer to the [SPDX specification Clause 8.3](https://spdx.github.io/spdx-spec/v2.3/file-information/#83-file-type-field).
169
169
-`RELATIONSHIP`: A relationship definition related to this file. The string `@SBOM_LAST_SPDXID@` will be replaced by the SPDXID that is used for this SBOM item. Refer to the [SPDX specification](https://spdx.github.io/spdx-spec/v2.3/).
170
170
-`SPDXID`: The ID to use for identifier generation. By default, generate a new one. Whether or not this is specified, the variable `SBOM_LAST_SPDXID` is set to just generated/used SPDXID, which could be used for later relationship definitions.
0 commit comments