meson: fix build on macOS

This commit is contained in:
Rasmus Thomsen 2020-03-28 19:12:32 +01:00
parent 5c29d590c9
commit 30b6690dca

View file

@ -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')