Skip to content

Commit 3580aa2

Browse files
authored
Merge pull request #4472 from bgilbert/override_dependency
meson: Call `meson.override_dependency()` if Meson is new enough
2 parents 6936bc8 + ba59aeb commit 3580aa2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/meson/lib/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ libzstd = library('zstd',
127127
libzstd_dep = declare_dependency(link_with: libzstd,
128128
include_directories: join_paths(zstd_rootdir,'lib')) # Do not expose private headers
129129

130+
if meson.version().version_compare('>=0.54.0')
131+
meson.override_dependency('libzstd', libzstd_dep)
132+
endif
133+
130134
# we link to both:
131135
# - the shared library (for public symbols)
132136
# - the static library (for private symbols)

0 commit comments

Comments
 (0)