diff --git a/cmake/QtPublicSbomAttributionHelpers.cmake b/cmake/QtPublicSbomAttributionHelpers.cmake index 27a1959e666..22e80b464e0 100644 --- a/cmake/QtPublicSbomAttributionHelpers.cmake +++ b/cmake/QtPublicSbomAttributionHelpers.cmake @@ -415,11 +415,10 @@ function(_qt_internal_sbom_read_qt_attribution out_prefix) endif() if(arg_GET_DEFAULT_KEYS) - # Some calls are currently commented out, to save on json parsing time because we don't have - # a usage for them yet. - # _qt_internal_sbom_get_attribution_key(License license) _qt_internal_sbom_get_attribution_key(Id attribution_id "${out_prefix}") _qt_internal_sbom_get_attribution_key(LicenseId license_id "${out_prefix}") + _qt_internal_sbom_get_attribution_key(License license "${out_prefix}") + _qt_internal_sbom_get_attribution_key(LicenseFile license_file "${out_prefix}") _qt_internal_sbom_get_attribution_key(Version version "${out_prefix}") _qt_internal_sbom_get_attribution_key(Homepage homepage "${out_prefix}") _qt_internal_sbom_get_attribution_key(Name attribution_name "${out_prefix}") diff --git a/cmake/QtPublicSbomHelpers.cmake b/cmake/QtPublicSbomHelpers.cmake index 472b48508ff..f9f83dd1185 100644 --- a/cmake/QtPublicSbomHelpers.cmake +++ b/cmake/QtPublicSbomHelpers.cmake @@ -996,6 +996,14 @@ function(_qt_internal_sbom_add_target target) if(qa_qt_usage) string(APPEND package_comment " Qt usage: ${qa_qt_usage}\n") endif() + + if(qa_license) + string(APPEND package_comment " License: ${qa_license}\n") + endif() + + if(qa_license_file) + string(APPEND package_comment " License file: ${qa_license_file}\n") + endif() endif() if(package_comment)