Matroska-Org / libmatroska

a C++ libary to parse Matroska files (.mkv and .mka)
GNU Lesser General Public License v2.1
324 stars 57 forks source link

Allow CMake to build both shared and static libraries #17

Open brad0 opened 6 years ago

brad0 commented 6 years ago

The autotools infrastructure for libmatroska and libebml allowed for building both shared and static libraries.

The new CMake infrastructure appears to only be able to build shared OR static libraries depending on the setting of BUILD_SHARED_LIBS instead of enabling both.

mbunkus commented 6 years ago

I'm not going to spend any time on this as I don't know a lot about cmake. That being said, I'd highly welcome a patch that implements this functionality.

evpobr commented 3 years ago

Please no. CMake approach is to make separate builds, you have problems implementing this now because it is wrong way. I did this mistake with libsndfile, no real benefits, but it was very hard to support and use. Don't try to mimic Autotools, it is different in many aspects.