镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

CMake: hide all symbols by default in shared lib - #1240

Open
SpaceIm wants to merge 2 commits into
jbeder:masterfrom
SpaceIm:cmake-hide-symbols
Open

SpaceIm wants to merge 2 commits into
jbeder:masterfrom
SpaceIm:cmake-hide-symbols

Conversation

@SpaceIm

@SpaceIm SpaceIm commented Oct 30, 2023 •

Copy link
Copy Markdown
Contributor

Hide private symbols irrespective of compiler when yaml-cpp shared is built with CMake.
This PR is similar to #984, but it does not remove dll.h (which was the reason why it has been reverted in #1038). So it doesn't break users not relying on CMake to build yaml-cpp.

Also simplify dll.h, which had lot of dead code, and weird logic for entering in declspec branch (actually it's windows specific, so _WIN32 is fine).

@nigels-com

Copy link
Copy Markdown

Has conflicts now.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

2 participants