summaryrefslogtreecommitdiff
path: root/lib/curl_config.h.cmake
diff options
context:
space:
mode:
authorMarc Aldorasi <marc@groundctl.com>2019-12-13 17:23:11 -0500
committerJay Satiro <raysatiro@yahoo.com>2020-01-11 18:10:47 -0500
commitea6d6205d9e13ce688afed28f6a09ade49b348d3 (patch)
treeb92fb7e6371c590fc3817e491385bdf0d2326277 /lib/curl_config.h.cmake
parentc9c551f1f9a46c3087122e5786cceff72896dac5 (diff)
downloadcurl-ea6d6205d9e13ce688afed28f6a09ade49b348d3.tar.gz
cmake: Enable SMB for Windows builds
- Define USE_WIN32_CRYPTO by default. This enables SMB. - Show whether SMB is enabled in the "Enabled features" output. - Fix mingw compiler warning for call to CryptHashData by casting away const param. mingw CryptHashData prototype is wrong. Closes https://github.com/curl/curl/pull/4717
Diffstat (limited to 'lib/curl_config.h.cmake')
-rw-r--r--lib/curl_config.h.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake
index 2c3b6562d..1f6c3154f 100644
--- a/lib/curl_config.h.cmake
+++ b/lib/curl_config.h.cmake
@@ -73,6 +73,9 @@
#define CURL_EXTERN_SYMBOL
#endif
+/* Allow SMB to work on Windows */
+#cmakedefine USE_WIN32_CRYPTO
+
/* Use Windows LDAP implementation */
#cmakedefine USE_WIN32_LDAP 1