You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Nebojsa Sabovic (Commented) (JIRA)" <ji...@apache.org> on 2011/10/10 19:09:30 UTC

[jira] [Commented] (AVRO-908) Add an option to build avrocpp as a static library

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

Nebojsa Sabovic commented on AVRO-908:
--------------------------------------

Hi Thiruvalluvan,

Your should additionally add  STATIC in the avrocpp_s target, otherwise projects with BUILD_SHARED_LIBS=OFF (inherited, for example) will end up with two shared libraries.
                
> Add an option to build avrocpp as a static library
> --------------------------------------------------
>
>                 Key: AVRO-908
>                 URL: https://issues.apache.org/jira/browse/AVRO-908
>             Project: Avro
>          Issue Type: New Feature
>          Components: c++
>    Affects Versions: 1.5.4
>            Reporter: Nebojsa Sabovic
>            Assignee: Nebojsa Sabovic
>              Labels: cmake
>             Fix For: 1.6.0
>
>         Attachments: AVRO-908-rev-2.patch, AVRO-908.patch
>
>
> Use BUILD_SHARED_LIBS variable to control whether Avro-c++ library is built as a shared library or as a static library. That way, people who want static library can use 'cmake -DBUILD_SHARED_LIBS=OFF'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira