CMake gui构建libcurl,MTD/MT,支持openssl

我用的是VS2022,构建的是x86版本,Cmake gui重要的entry设置如下:

CURL_ENABLE_SSL on

CURL_USE_OPENSSL on

OPENSSL_ROOT_DIR PATH类型 设置openssl的路径

CMAKE_MSVC_RUNTIME_LIBRARY string MultiThreaded\<<CONFIG:Debug>:Debug

ENABLE_IPV6 on

CURL_DIABLE_LDAP on

CURL_DIABLE_LDAPs on

CURL_USE_LIBPSL off

CURL_ZLIB off

openssl win32 installer 下载路径:

https://slproweb.com/products/Win32OpenSSL.html

注意这个:MultiThreaded\<<CONFIG:Debug>:Debug,设置后,生成libcurl的debug版本就是/MTd,release版就是/MT,openssl的lib文件因为没有运行时信息,所以不必考虑链接时openssl的运行时是否匹配。

相关推荐
Lsetea2 天前
CDN换了SSL证书仍显示旧证书?按边缘节点、SNI和缓存逐层排查
https·cdn·ssl证书·openssl·tls
Lsetea3 天前
Nginx HTTPS证书域名不匹配:用SAN与SNI定位 ERR_CERT_COMMON_NAME_INVALID
nginx·https·ssl证书·openssl·tls
bosins7 天前
Windows IIS 配置本地HTTPS 全流程指南:自签名证书 + 端口绑定 + 避坑详解
powershell·openssl
Lsetea11 天前
Nginx报SSL_CTX_use_PrivateKey failed:证书与私钥不匹配怎么排查
nginx·https·ssl证书·openssl·私钥
Lsetea13 天前
SSL证书快过期怎么自动检查:用OpenSSL checkend做7天预警与线上证书验收
https·ssl证书·openssl·systemd·证书监控
蜡台1 个月前
本机 局域网 搭建本地 HTTPS 域名完整方案
网络协议·http·https·openssl
qetfw1 个月前
Debian OpenSSL CA 证书配置参考:根证书、服务证书与验证
linux·debian·ssl·openssl
qetfw1 个月前
Debian OpenSSL 搭建 CA 证书服务:签发、吊销与客户端信任
linux·debian·openssl·ca
smaller_maple3 个月前
T113开启openssh
openssl·openssh·t113开启ssh
zh_xuan4 个月前
api测试工具添加历史记录功能
c++·libcurl·duilib