Currently we only support compiling either static or shared build of the WiredTiger library in CMake (being a binary option). When building a release version of WiredTiger, it can be ideal to compile both the static and shared artifacts for a system installation.
The intention of this ticket is to update the CMake project to support the option for compiling both the static and shared build of WiredTiger under a single build run.
Definition of Done:
- Add a new configuration option 'ENABLE_SHARED', being an independent configuration from 'ENABLE_STATIC'
- Build a static version of WiredTiger if 'ENABLE_STATIC' is enabled.
- Build a shared version of WiredTiger if 'ENABLE_SHARED' is enabled.