You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
Hi,
I believe we can make some changes to allow static build, but the default value we'd like to provide is SHARED.
May I know what your use case is? It'd be nice to understand how you'd like to use our lib statically and what solution would you accept (if not BUILD_SHARED_LIBS=on).
Also, what version of pmemkv you're using - would it be all right to add this new CMake option to the master branch?
Hi @lukaszstolarczuk , thank you for your reply. I am using the version 1.5.0 of pmemkv. The use case is I am considering using pmemkv in envoy http cache. I know this is uncommon but enovy only supports statically builds. What about leave the default build option to SHARED then add a new option for static build?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
QUESTION:
How can I build pmemkv statically?
Details
I am wondering why pmemkv only supports building as a shared library. Why not remove
SHARED
flag herepmemkv/CMakeLists.txt
Line 298 in 9f7de0c
and
pmemkv/CMakeLists.txt
Line 409 in 9f7de0c
If users want to build it as a shared lib, they can manually set
BUILD_SHARED_LIBS=on
when cmake.The text was updated successfully, but these errors were encountered: