You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by rs...@apache.org on 2025/11/23 11:20:42 UTC

(avro) branch main updated: AVRO-4206: add zstd as a dependency if the library is compiled with it (#3557)

This is an automated email from the ASF dual-hosted git repository.

rskraba pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/main by this push:
     new 709f94ba45 AVRO-4206: add zstd as a dependency if the library is compiled with it (#3557)
709f94ba45 is described below

commit 709f94ba45cf9e8c868bbb6822de68ede52ebdc9
Author: Bastien Durel <ba...@quetastream.com>
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 2e5e5d5501..5104843f3a 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)
 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})