or-tools编译命令自用备注
cmake .. -G "Visual Studio 17 2022" -A Win32 //vs2022
cmake .. -G "Visual Studio 15 2017" -A Win32 //vs2017
-DBUILD_DEPS=ON //联网下载
-DCMAKE_INSTALL_PREFIX=install //带安装命令
-DCMAKE_CXX_FLAGS="/utf-8" //强制使用 UTF-8 编码
//编译
cmake --build . --config Release
//安装
cmake --install . --config Release
# 设置 HTTP/HTTPS 代理(替换为你的代理地址和端口)
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
在命令提示符(CMD)中:
-
查看
http_proxy
环境变量:echo %http_proxy%
-
查看
https_proxy
环境变量(如果也设置了):echo %https_proxy%
//查看git clone是否能用
git clone https://hub.fastgit.org/madler/zlib.git