CMake: Allow force disabling generation of SBOM
We need it to disable generation for certain repos like qtqa, even if the platform config says that SBOMs should be enabled. We can't just set QT_GENERATE_SBOM to OFF, because the general SBOM CI instructions are added later that module specific ones, and thus would override the value back to ON. Providing a separate internal variable allows us to disable it with a higher priority. Pick-to: 6.8 Task-number: QTBUG-122899 Change-Id: If7803ae4aac0886d605a542e3f05ad9533bb8108 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
089111aee0
commit
0ea3164969
@ -9,6 +9,11 @@
|
||||
# Qt's INSTALL_SBOMDIR
|
||||
# SUPPLIER, SUPPLIER_URL, DOCUMENT_NAMESPACE, COPYRIGHTS are self-explanatory.
|
||||
function(_qt_internal_sbom_begin_project)
|
||||
# Allow opt out via an internal variable. Will be used in CI for repos like qtqa.
|
||||
if(QT_INTERNAL_FORCE_NO_GENERATE_SBOM)
|
||||
set(QT_GENERATE_SBOM OFF CACHE BOOL "Generate SBOM" FORCE)
|
||||
endif()
|
||||
|
||||
if(NOT QT_GENERATE_SBOM)
|
||||
return()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user