]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
meson: Do not export private headers in libzstd_dep to avoid name clash
authorArtem Labazov <123321artyom@gmail.com>
Mon, 30 Sep 2024 14:00:42 +0000 (17:00 +0300)
committerArtem Labazov <a.labazov@corp.vk.com>
Mon, 30 Sep 2024 14:03:42 +0000 (17:03 +0300)
This way libzstd_dep does not override, for instance, <xxhash.h>

build/meson/lib/meson.build

index 68db2ca6cbb77ff9a35e3618d7ad16ce092d2b28..6c5d53d1a7172de37794684d36f4903e10846dca 100644 (file)
@@ -124,7 +124,7 @@ libzstd = library('zstd',
   version: zstd_libversion)
 
 libzstd_dep = declare_dependency(link_with: libzstd,
-  include_directories: libzstd_includes)
+  include_directories: join_paths(zstd_rootdir,'lib')) # Do not expose private headers
 
 # we link to both:
 # - the shared library (for public symbols)