Blosc/c-blosc2

RFE: provide PREFER_EXTERNAL_XXHASH configuration option

keszybz opened this issue · 2 comments

In compilation for Fedora, I'm able to set -DPREFER_EXTERNAL_LZ4:BOOL=ON, -DPREFER_EXTERNAL_ZLIB:BOOL=ON, -DPREFER_EXTERNAL_ZSTD:BOOL=ON, but I see a bundled copy of xxhash is still being used. It'd be great to use the distro copy too.

With the following:

rm -v plugins/codecs/ndlz/xxhash.?
sed -r -i '/xxhash.c/d' plugins/codecs/ndlz/CMakeLists.txt

everything builds fine and test_plugin_test_ndlz passes without issue.

So it seems that it'd be just a matter of skipping the xxhash.c from the sources and ensuring that xxhash.h from /usr/include is used.

Ok, but this will add the xxhash dependency, right? I suppose we would need something like PREFER_EXTERNAL_XXHASH. If you can provide a PR, I'll be happy to discuss more about this.