mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 13:27:09 +00:00
install(SBOM) could crash for dependencies outside an export set and mishandle private dependencies expressed through LINK_ONLY. Resolve link expressions before target lookup, traverse unexported dependencies transitively, and isolate document state per configuration. Preserve target license precedence and align document metadata inheritance with CPS. Add regression coverage for these cases. Fixes: #28141 Fixes: #28210
14 lines
320 B
CMake
14 lines
320 B
CMake
include(${CMAKE_CURRENT_LIST_DIR}/../Sbom/ProjectMetadata.cmake)
|
|
|
|
install(
|
|
SBOM test_targets
|
|
NO_PROJECT_METADATA
|
|
DESCRIPTION "An eloquent description"
|
|
DATA_LICENSE BSD-3
|
|
HOMEPAGE_URL www.example.com
|
|
PACKAGE_URL https://example.com/test_targets.tar.gz
|
|
VERSION 1.3.4
|
|
EXPORTS test_targets
|
|
DESTINATION .
|
|
)
|