diff options
author | Jakub Zakrzewski <slither.jz@gmail.com> | 2016-09-04 12:37:46 +0200 |
---|---|---|
committer | Jakub Zakrzewski <slither.jz@gmail.com> | 2016-09-10 00:35:38 +0200 |
commit | 6140dfcf3e7845f11dee755de6865379aa96dab7 (patch) | |
tree | b04e4001ee22651132fda45756d04105362514d1 /lib/curl_config.h.cmake | |
parent | 83ef21e5e9946de2805ae10cc5e6ef9431b22702 (diff) | |
download | curl-6140dfcf3e7845f11dee755de6865379aa96dab7.tar.gz |
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
Diffstat (limited to 'lib/curl_config.h.cmake')
-rw-r--r-- | lib/curl_config.h.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index f7dbd23c0..ddcd210de 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -67,7 +67,7 @@ #cmakedefine CURL_DISABLE_VERBOSE_STRINGS 1 /* to make a symbol visible */ -#cmakedefine CURL_EXTERN_SYMBOL 1 +#cmakedefine CURL_EXTERN_SYMBOL ${CURL_EXTERN_SYMBOL} /* Ensure using CURL_EXTERN_SYMBOL is possible */ #ifndef CURL_EXTERN_SYMBOL #define CURL_EXTERN_SYMBOL |