movq
V2EX  ›  程序员

clion 右键 cmakelists.txt 点击 reload cmake project 这个步骤怎么走代理

By movq at 2022 年 3 月 4 日 · 2103 次点击

如果我在命令行 设置http_proxy 的话, cmake .. 可以成功走代理,但是如果我右键点击CMakeLists.txt,如果执行过程中有一些下载 github 仓库的操作,由于走不了代理,就不能继续进行下去了。。。

[ 11%] Performing download step (git clone) for 'googletest'
Cloning into 'googletest-src'...
fatal: unable to access 'https://github.com/google/googletest.git/': LibreSSL SSL_connect: Operation timed out in connection to github.com:443 
3 条回复  •  2022-03-04 18:12:45 +08:00
mschultz
   1
mschultz  
   2022 年 3 月 4 日
看上去这是一个 git 操作(`git clone`),所以

```
git config --global http.proxy http://<host>:<port>
git config --global https.proxy http://<host>:<port>
```

可不可以呢?
statumer
   2
statumer  
   2022 年 3 月 4 日 via iPhone
set(ENV{HTTP_PROXY} “”)
imzcg2
   3
imzcg2  
   2022 年 3 月 4 日 via Android
clash + tun 不够用?
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
© 2026 V2EX · 28ms · 3.9.8.5