Skip to content

CMake configuration does not respect BUILD_SHARED_LIBS and BUILD_STATIC_LIBS #58

@martinweismann

Description

@martinweismann

From #44:

It would be also nice to be able to use the standard BUILD_SHARED_LIBS and BUILD_STATIC_LIBS variables and specify the suffix for the static lib (as that's not needed on Linux / MinGW - both have naming conventions that don't clash with the static lib). This would help to automatically pick up the build configuration global to a MXE target which encodes the SHARED/STATIC lib as default in the cross-compile cmake binary.

I guess the problem is that with this PR, by default, lib3MF.* (* \in {dll, so, dylib}) refers to the shared library and lib3MF_s.* (* \in {a, lib}) to the static library. A user who includes lib3MF as a sub-project would expect to obtain (and include) lib3MF.* as the shared or static library, depending on the status of BUILD_*_LIBS. Is that correct? Otherwise, please elaborate a bit more.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions