CMake: Don't forward FRIENDLY_PACKAGE_NAME to sub-attribution targets
Instead, the package name should be determined by the sub-attribution target name. Otherwise the build system will try to generate multiple files with the same name, but different content. Amends 5daabb5a74c4e7c5d087da7f9207d79d2ee05b13 Pick-to: 6.8 Task-number: QTBUG-122899 Change-Id: I10b4ec2fe8f38d70d13918dc980d1bd1d9145cb6 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
55b399fdcd
commit
d624592ca4
@ -2091,6 +2091,10 @@ function(_qt_internal_sbom_handle_qt_attribution_files out_prefix_outer)
|
||||
ATTRIBUTION_FILE_DIR_PATHS
|
||||
)
|
||||
|
||||
# Also filter out the FRIENDLY_PACKAGE_NAME option, otherwise we'd try to
|
||||
# file(GENERATE) multiple times with the same file name, but different content.
|
||||
list(REMOVE_ITEM sbom_single_args FRIENDLY_PACKAGE_NAME)
|
||||
|
||||
_qt_internal_forward_function_args(
|
||||
FORWARD_APPEND
|
||||
FORWARD_PREFIX arg
|
||||
|
Loading…
x
Reference in New Issue
Block a user