]> granicus.if.org Git - curl/commit
CMake: Try to (un-)hide private library symbols
authorJakub Zakrzewski <slither.jz@gmail.com>
Sun, 4 Sep 2016 10:37:46 +0000 (12:37 +0200)
committerJakub Zakrzewski <slither.jz@gmail.com>
Fri, 9 Sep 2016 22:35:38 +0000 (00:35 +0200)
commit6140dfcf3e7845f11dee755de6865379aa96dab7
treeb04e4001ee22651132fda45756d04105362514d1
parent83ef21e5e9946de2805ae10cc5e6ef9431b22702
CMake: Try to (un-)hide private library symbols

Detect support for compiler symbol visibility flags and apply those
according to CURL_HIDDEN_SYMBOLS option.
It should work true to the autotools build except it tries to unhide
symbols on Windows when requested and prints warning if it fails.

Ref: https://github.com/curl/curl/issues/981#issuecomment-242665951
Reported-by: Daniel Stenberg
CMake/CurlSymbolHiding.cmake [new file with mode: 0644]
CMakeLists.txt
lib/CMakeLists.txt
lib/curl_config.h.cmake
tests/libtest/CMakeLists.txt