danfis / libccd

Library for collision detection between two convex shapes
Other
478 stars 108 forks source link

Define and propagate CCD_STATIC_DEFINE if the library is compiled as static #79

Open traversaro opened 1 year ago

traversaro commented 1 year ago

When the ccd library is compiled as static, the CCD_EXPORT should be an empty string, especially on Windows, to avoid linking errors. This can be achieved easily by making sure that CCD_STATIC_DEFINE is defined both when buildng ccd as static, and also when the static ccd is consumed by downstream CMake libraries.

Fix https://github.com/danfis/libccd/issues/33 .