-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake: Fix ABI version for shared library and improve MSVC output artifacts naming #1237
Conversation
Concept ACK, also based on the fact that autotools+mingw adds the lib prefix: With
Do we also want the By the way, autotools+MSVC doesn't add the prefix... But that's a somewhat strange combination that probably noone uses, except our CI.
|
Incidentally, I'm thinking about the same at this moment :) |
Concept ACK |
When using Visual Studio generator, the "lib" prefix is not added automatically.
Also I've noticed and fixed a wrong ABI version for a shared library. The PR description has been updated as well. |
The ABI version fix has been moved into a separated #1270. Drafted for now. |
Closing in favour of #1270. |
To test, one needs to simulate a release with backward-compatible API changes, which means:
LIB_VERSION_CURRENT
LIB_VERSION_REVISION
to zeroLIB_VERSION_AGE
Also added ABI-version suffix for a shared library (not bothering about a static library, as it already has the "_static" suffix to avoid name collision with DLL import library; should be revisited after #1230).
On master (5658209):
secp256k1.dll
andsecp256k1.lib
secp256k1_static.lib
With this PR:
libsecp256k1-2.dll
andlibsecp256k1-2.lib
libsecp256k1_static.lib