summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-10-24 12:27:01 +0200
committerMatt Turner <mattst88@gmail.com>2022-10-27 18:17:26 +0000
commit0cf92877a9d206b6399358a53a83277eba4fa8f5 (patch)
tree7892df761a93f6071ed76ab7dd5ba59ff5473572
parent4ee322c4e2545d03494dbf565c6a4a51038a10e4 (diff)
meson: override pixman-1 dependency
This eases usage as a Meson subproject. Signed-off-by: Simon Ser <contact@emersion.fr>
-rw-r--r--pixman/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/pixman/meson.build b/pixman/meson.build
index 1c2e7d3..652cda3 100644
--- a/pixman/meson.build
+++ b/pixman/meson.build
@@ -135,4 +135,8 @@ idep_pixman = declare_dependency(
include_directories : inc_pixman,
)
+if meson.version().version_compare('>= 0.54.0')
+ meson.override_dependency('pixman-1', idep_pixman)
+endif
+
install_headers('pixman.h', subdir : 'pixman-1')