From f4f8f0bdb366202561788d810ded4dccaede26c8 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 9 Jul 2022 20:52:28 +0000 Subject: [PATCH] meson: Use partial_dependency() for libdrm cflags --- meson.build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 4a25ffa..e038829 100644 --- a/meson.build +++ b/meson.build @@ -34,9 +34,7 @@ if git.found() endif endif -libdrm_include_dir = dependency('libdrm').get_variable(pkgconfig: 'includedir') - -c_args += '-I=' + libdrm_include_dir +libdrm_inc = dependency('libdrm').partial_dependency(compile_args: true) add_project_arguments(c_args, language: 'c') @@ -92,6 +90,7 @@ dependencies = [ pixman, aml, zlib, + libdrm_inc, ] config = configuration_data()