Aaron Barany created AVRO-4168: ---------------------------------- Summary: 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 Fix For: 1.13.0
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)