Posted on 2017-02-21 21:39
eryar 閱讀(1349)
評論(0) 編輯 收藏 引用 所屬分類:
2.OpenCASCADE
Visual Studio Set Project Environment Variables
eryar@163.com
In Visual Studio you can specify changes to environment variables in the project settings. Open your project, go to Project -> Properties... Under Configuration Properties -> Debugging, edit the Environment value to set environment variables.
For example, if you want to add the directory “c:\foo\bin” to the path when debugging your application, set the Environment value to “PATH=%PATH%;c:\foo\bin”.
Here’s a screenshot of the settings dialog:
當使用第三方庫進行開發時,如果某個第三方庫有多個版本,為了使多個版本互不影響,且也不想把相關的程序路徑設置到電腦的環境變量中去,則可以在Debugging中為某個開發項目設置環境變量。