V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
movq
V2EX  ›  程序员

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

  •  
  •   movq · 2022-03-04 16:25:32 +08:00 · 1246 次点击
    这是一个创建于 807 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如果我在命令行 设置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-03-04 16:27:35 +08:00
    看上去这是一个 git 操作(`git clone`),所以

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

    可不可以呢?
    statumer
        2
    statumer  
       2022-03-04 16:50:06 +08:00 via iPhone
    set(ENV{HTTP_PROXY} “”)
    imzcg2
        3
    imzcg2  
       2022-03-04 18:12:45 +08:00 via Android
    clash + tun 不够用?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   843 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:45 · PVG 05:45 · LAX 14:45 · JFK 17:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.