Repository navigation
Description
Part of #138
Popularity: 2/7 corpus consumers (cuda-quantum, holoscan-sdk)
Problem
reflect-cpp (v0.25.0) bundles third-party libraries directly under include/rfl/thirdparty (CTRE under Apache-2.0 WITH LLVM-exception, enchantum under MIT, and yyjson under MIT) without shipping a consolidated, machine-readable license/SBOM manifest or standalone license files for each bundled component. Commercial/enterprise redistributors must manually audit include/rfl/thirdparty, extract embedded license text from headers (such as ctre.hpp), document which bundled code is actually compiled into binaries (e.g. explaining why yyjson is omitted when REFLECTCPP_JSON=OFF), and scrape FetchDependencies.cmake for source-archive provenance.
Observed Downstream Workarounds
NVIDIA/cuda-quantum (90e4aa08)
LICENSES/README.md#L15-L18and#L43-L52: maintains separateLICENSE.reflect-cpp,LICENSE.ctre, andLICENSE.enchantumfiles, manually reproduces the Apache-2.0 WITH LLVM-exception text embedded ininclude/rfl/thirdparty/ctre.hpp, and adds an explicit disclaimer explaining that bundledyyjsonis not compiled whenREFLECTCPP_JSON=OFF:reflect-cppbundles the header-onlyCTREandenchantumlibraries underinclude/rfl/thirdparty;LICENSE.ctrereproduces the Apache License 2.0 text with LLVM Exceptions embedded in the bundledctre.hppheader. reflect-cpp also bundles theyyjsonheader, but that code is not compiled into CUDA-Q binaries because reflect-cpp's JSON support is disabled; it is therefore not listed above.NOTICE#L275-L321: manually lists separatereflect-cpp,CTRE, andenchantumattribution blocks.scripts/generate_image_sources_lock.py#L86-L95: regex-parsesFetchDependencies.cmaketo generate container source-archive lock entries forreflect-cpp.
nvidia-holoscan/holoscan-sdk (358c772f)
NOTICE.txt#L323-L326: manually enumerates the composite license expression and bundled components:reflect-cpp (https://github.com/getml/reflect-cpp) Copyright (c) 2023-2025 Code17 GmbH Licensed under MIT AND Apache-2.0 WITH LLVM-exception (https://github.com/getml/reflect-cpp/blob/v0.25.0/README.md#license) Bundled components: YYJSON, compile-time-regular-expressions, enchantum
Potential Improvements
- Ship standalone license files (or a
THIRD_PARTY_NOTICES/ SPDX manifest) for every vendored component ininclude/rfl/thirdpartyso downstream compliance tooling does not need to scrape headers. - Document clearly which third-party headers are required per feature flag (e.g.
REFLECTCPP_JSON=OFFdoes not compileyyjson).
Activity