Bug 61996 - cmake build environment for windows should honor BUILD_SHARED_LIBS and not produce shared and static outputs
Summary: cmake build environment for windows should honor BUILD_SHARED_LIBS and not pr...
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR (show other bugs)
Version: HEAD
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-14 13:10 UTC by James E. King III
Modified: 2018-01-14 13:13 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James E. King III 2018-01-14 13:10:14 UTC
Typical cmake builds for windows honor the BUILD_SHARED_LIBS setting and produce either a static or a shared library output, but not both.  The current cmake build will produce both.

See: https://cmake.org/cmake/help/latest/variable/BUILD_SHARED_LIBS.html
Comment 1 James E. King III 2018-01-14 13:13:09 UTC
I forgot to add, when build a static library with any debug information in it (Debug, RelWithDebInfo), it is also typical yo change the debugging flag to /Z7 so the debugging information is placed directly into the static library, rather than in an accompanying PDB file.