diff options
author | Patrick Griffis <tingping@tingping.se> | 2017-11-18 21:29:56 -0500 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2017-11-18 21:29:56 -0500 |
commit | 228e08543afe3fb5d15e9e3f40114f6ae1a3d793 (patch) | |
tree | a5a956620b2625cc42512bde98bff3d48fc50381 | |
parent | 38f8cc8e0ccb981a06074cf9bf2ff8facb896c5d (diff) |
build: Force pkg-config lookup method for libpci
This is some meson bug but this solution works for now.
-rw-r--r-- | plugins/sysinfo/meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sysinfo/meson.build b/plugins/sysinfo/meson.build index 7b4c9425..3781bd52 100644 --- a/plugins/sysinfo/meson.build +++ b/plugins/sysinfo/meson.build @@ -19,8 +19,8 @@ if system == 'linux' or system == 'darwin' ] if system == 'linux' - libpci = dependency('libpci', required: false) - if libpci.found() and cc.has_header('pci/pci.h') + libpci = dependency('libpci', required: false, method: 'pkg-config') + if libpci.found() sysinfo_deps += libpci sysinfo_cargs += '-DHAVE_LIBPCI' sysinfo_sources += 'unix/pci.c' |