From 30b6690dcae9c41ab016ddfeb3bd7841f02258fe Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Sat, 28 Mar 2020 19:12:32 +0100 Subject: [PATCH] meson: fix build on macOS --- source/taggedalgebraic/meson.build | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/source/taggedalgebraic/meson.build b/source/taggedalgebraic/meson.build index 920f715..338606e 100644 --- a/source/taggedalgebraic/meson.build +++ b/source/taggedalgebraic/meson.build @@ -4,13 +4,23 @@ taggedalgebraic_src = [ 'visit.d', ] -taggedalgebraic_lib = library( - 'taggedalgebraic', - taggedalgebraic_src, - version: project_version, - install: true, - include_directories: include_directories('../') -) +# https://github.com/mesonbuild/meson/issues/6862 +if build_machine.system() == 'darwin' + taggedalgebraic_lib = library( + 'taggedalgebraic', + taggedalgebraic_src, + install: true, + include_directories: include_directories('../'), + ) +else + taggedalgebraic_lib = library( + 'taggedalgebraic', + taggedalgebraic_src, + install: true, + include_directories: include_directories('../'), + version: project_version, + ) +endif pkgc = import('pkgconfig')