From d2d2f32f17f7bfec352e49cacfc835ada1bdaa0d Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Thu, 31 Dec 2020 02:32:33 +0000 Subject: [PATCH] Add libdrm include path to cflags This seems to be required for this to build on FreeBSD --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index af0e153..3585117 100644 --- a/meson.build +++ b/meson.build @@ -34,6 +34,10 @@ if git.found() endif endif +libdrm_include_dir = dependency('libdrm').get_variable(pkgconfig: 'includedir') + +c_args += '-I' + libdrm_include_dir + add_project_arguments(c_args, language: 'c') cc = meson.get_compiler('c')