This is an automated email from the ASF dual-hosted git repository.
rskraba pushed a commit to branch branch-1.12
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/branch-1.12 by this push:
new 2a3b48aa8c AVRO-4206: add zstd as a dependency if the library is
compiled with it (#3557)
2a3b48aa8c is described below
commit 2a3b48aa8c882fd3eb3b4f9e15e0aeb4b039900f
Author: Bastien Durel <[email protected]>
AuthorDate: Sun Nov 23 12:20:35 2025 +0100
AVRO-4206: add zstd as a dependency if the library is compiled with it
(#3557)
Thanks! I'll cherry-pick this to branch-1.12 -- apparently we didn't have
zstd in branch-1.11.
---
lang/c++/cmake/avro-cpp-config.cmake.in | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lang/c++/cmake/avro-cpp-config.cmake.in
b/lang/c++/cmake/avro-cpp-config.cmake.in
index 81f9f0db10..c943f33f8d 100644
--- a/lang/c++/cmake/avro-cpp-config.cmake.in
+++ b/lang/c++/cmake/avro-cpp-config.cmake.in
@@ -45,6 +45,9 @@ endif()
if(@Boost_FOUND@)
find_dependency(Boost 1.70 REQUIRED COMPONENTS system)
endif()
+if(@zstd_FOUND@)
+ find_dependency(zstd REQUIRED)
+endif()
if(DEFINED AVRO_CMAKE_MODULE_PATH_OLD)
set(CMAKE_MODULE_PATH ${AVRO_CMAKE_MODULE_PATH_OLD})