Add options for building and installing shared, static libraries#70
Add options for building and installing shared, static libraries#70sizeofvoid wants to merge 1 commit intoMatroska-Org:masterfrom
Conversation
|
@robUx4 Can you test this PR on Windows, please? |
|
I get these compilation errors (VS Code with Clang 11 from Visual Studio 2019) There are 2 errors.
|
|
Adding the
Now given it's built with Defining |
robUx4
left a comment
There was a problem hiding this comment.
Changes to EBML_DLL_EXPORT needed
|
|
||
| target_compile_definitions(ebml | ||
| PUBLIC EBML_DLL | ||
| PRIVATE EBML_DLL_EXPORT) |
There was a problem hiding this comment.
Needs to be ebml_EXPORTS, not EBML_DLL_EXPORT.
There was a problem hiding this comment.
The libmatroska version doesn't have this and it's exporting the DLL symbols correctly. Removing this target_compile_definitions completely also fixes the issue.
|
Also it seems both the static and dynamic builds generate a There are also an |
This PR adds cmake options for building and installing shared and/or static libraries. All combinations were tested on a UNIX-like system. Therefore a test under Windows is missing.