Merge pull request #49 from Cogitri/meson

meson: fix build on macOS
This commit is contained in:
Sönke Ludwig 2020-03-29 18:55:37 +02:00 committed by GitHub
commit f9eb5878ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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