yaml-cpp
yaml-cpp copied to clipboard
CMake: hide all symbols by default in shared lib
Hide private symbols irrespective of compiler when yaml-cpp shared is built with CMake.
This PR is similar to https://github.com/jbeder/yaml-cpp/pull/984, but it does not remove dll.h (which was the reason why it has been reverted in https://github.com/jbeder/yaml-cpp/pull/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).
Has conflicts now.