You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2025/08/27 15:09:00 UTC

[jira] [Commented] (AVRO-4168) Allow building only one of static or shared C++ libraries

    [ https://issues.apache.org/jira/browse/AVRO-4168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18016572#comment-18016572 ] 

ASF subversion and git services commented on AVRO-4168:
-------------------------------------------------------

Commit 2943fe1398339e45012c48a12c5b73b245903d32 in avro's branch refs/heads/main from Aaron Barany
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=2943fe1398 ]

AVRO-4168: [C++] Make static and shared libs optional (#3435)



> Allow building only one of static or shared C++ libraries
> ---------------------------------------------------------
>
>                 Key: AVRO-4168
>                 URL: https://issues.apache.org/jira/browse/AVRO-4168
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Aaron Barany
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.13.0
>
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> The current build setup always builds both static and shared libraries. If only the static library or only the shared library is used, ideally it should be possible to disable the other so it isn't built or installed.
>  
> Additionally, the standard {{BUILD_SHARED_LIBS}} CMake variable should be respected so special handling isn't required compared to other CMake projects. Ideally:
> * If {{BUILD_SHARED_LIBS}} is unset, it can follow the same behavior as today. (both static and shared are built)
> * If {{BUILD_SHARED_LIBS}} is {{ON}}, the static library should be disabled and the tools and tests link to the shared library.
> * If {{BUILD_SHARED_LIBS}} os {{OFF}}, the shared library should be disabled.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)