Skip to content
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

why not add support build to Dynamic Link Library for windows #1

Closed
loobins opened this issue Oct 25, 2019 · 1 comment
Closed

why not add support build to Dynamic Link Library for windows #1

loobins opened this issue Oct 25, 2019 · 1 comment

Comments

@loobins
Copy link

loobins commented Oct 25, 2019

It is a gread project, why not add support build to Dynamic Link Library for windows,
same request for cppCommon。

@chronoxor
Copy link
Owner

If you need shared library it's easy to replace in CMakeLists.txt

add_library(cpplogging ${LIB_HEADER_FILES} ${LIB_INLINE_FILES} ${LIB_SOURCE_FILES} ${MINIZIP_FILES})

with

add_library(cpplogging SHARED ${LIB_HEADER_FILES} ${LIB_INLINE_FILES} ${LIB_SOURCE_FILES} ${MINIZIP_FILES})

In our projects we build everything from sources and all libs as static, than link into singe executable file. This gives us ability to debug everything we need and get rid of dll/so hell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants