attempt to fix build

This commit is contained in:
Jussi Kuokkanen 2023-11-14 10:26:19 +02:00
parent 7f1044b322
commit 459a298f34

View File

@ -15,9 +15,9 @@ if libdrm_dep.found() and libdrm_amdgpu.found()
cpp_args = []
deps = [ libdrm_amdgpu, libdrm_dep, boost_dep ]
if (python_with_hwdata.found())
hwdata_version = run_command('python3', '-c',
hwdata_version_cmd = run_command('python3', '-c',
'from importlib.metadata import version; print(version(\'hwdata\'))')
.stdout().strip()
hwdata_version = hwdata_version_cmd.stdout().strip()
if (hwdata_version.version_compare('<2.4.1'))
warning('python-hwdata 2.4.1 is recommended for PCI.get_subsystem')
endif