CMake: Remove type restriction on attribution file extra SBOM info

So it can be used in other non-Qt projects.

Pick-to: 6.8 6.9
Task-number: QTBUG-122899
Change-Id: I11d81d2c6819906fffbffe81f4db1b7af28cb99b
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Alexandru Croitor 2025-02-24 15:03:32 +01:00
parent 422f5d859f
commit 6cd7f0c09b

View File

@ -963,12 +963,7 @@ function(_qt_internal_sbom_add_target target)
list(APPEND project_package_options ${purl_package_options})
endif()
if(arg_USE_ATTRIBUTION_FILES
AND (is_qt_3rd_party_entity_type
OR arg_TYPE STREQUAL "SYSTEM_LIBRARY"
OR arg_TYPE STREQUAL "THIRD_PARTY_LIBRARY"
OR arg_TYPE STREQUAL "THIRD_PARTY_LIBRARY_WITH_FILES")
)
if(arg_USE_ATTRIBUTION_FILES)
if(qa_attribution_name)
string(APPEND package_comment " Name: ${qa_attribution_name}\n")
endif()