如何永久配置VC命令行工具? [英] How to permanently configure VC command line tools?

查看:84
本文介绍了如何永久配置VC命令行工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想永久配置VC命令行工具,以便每个程序都可以使用这些工具,而无需手动运行vcvarsall.bat
有什么方法可以实现? br/>特别是对于gui程序(在我的情况下为cmake),我需要这个.如何为gui程序设置环境?

Hi

I'd like to permanently configure VC command line tools so that every program could use these tools without manually running vcvarsall.bat
Is there any way to accomplish this?
Particularly I need this for gui programs (cmake in my case). How can I set environment for gui programs?

推荐答案

Vsvarsall.bat仅设置环境变量.您为什么不将它们放入系统环境中,以便您运行的任何程序都对其进行了设置?控制面板+系统,高级选项卡,环境变量.除此之外,当然任何构建工具都可以设置环境变量或运行.cmd文件.在其支持渠道中提出特定的CMake问题.
Vsvarsall.bat just sets environment variables.  Why don't you just put these into your system environment so whatever program you run has them set?  Control Panel + System, Advanced tab, Environment variables.  Other than that, surely any build tool can set environment variables or run .cmd files.  Ask specific CMake questions at their support channels.


这篇关于如何永久配置VC命令行工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆