build: Force pkg-config lookup method for libpci
This is some meson bug but this solution works for now.
This commit is contained in:
parent
38f8cc8e0c
commit
228e08543a
@ -19,8 +19,8 @@ if system == 'linux' or system == 'darwin'
|
|||||||
]
|
]
|
||||||
|
|
||||||
if system == 'linux'
|
if system == 'linux'
|
||||||
libpci = dependency('libpci', required: false)
|
libpci = dependency('libpci', required: false, method: 'pkg-config')
|
||||||
if libpci.found() and cc.has_header('pci/pci.h')
|
if libpci.found()
|
||||||
sysinfo_deps += libpci
|
sysinfo_deps += libpci
|
||||||
sysinfo_cargs += '-DHAVE_LIBPCI'
|
sysinfo_cargs += '-DHAVE_LIBPCI'
|
||||||
sysinfo_sources += 'unix/pci.c'
|
sysinfo_sources += 'unix/pci.c'
|
||||||
|
Loading…
Reference in New Issue
Block a user