qt-base: pass SBOM PATH from cmake_args (#49596)

* qt-base: pass SBOM PATH from cmake_args

* qt-base: self.define from list

Co-authored-by: Seth R. Johnson <johnsonsr@ornl.gov>

---------

Co-authored-by: Seth R. Johnson <johnsonsr@ornl.gov>
This commit is contained in:
Wouter Deconinck 2025-03-21 09:50:09 -05:00 committed by GitHub
parent e178d2c75d
commit b343ebb64e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,6 +64,12 @@ def cmake_args(self):
# for prefixes of dependencies
args.append(self.define("QT_NO_DISABLE_CMAKE_INSTALL_RPATH_USE_LINK_PATH", True))
# Pass path variables as cmake arguments since some
# are not read from the environment
for v in ["QT_ADDITIONAL_PACKAGES_PREFIX_PATH", "QT_ADDITIONAL_SBOM_DOCUMENT_PATHS"]:
if v in os.environ:
args.append(self.define(v, os.environ[v].split(":")))
return args
@run_after("install")