Visual Studio - Where to define custom path macros?

前端 未结 8 1811
别那么骄傲
别那么骄傲 2020-11-28 22:18

I just opened someone else\'s Visual Studio project and in their build properties they have a few custom path macro\'s they are using for their include and lib directories.

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 22:35

    Try the other way without the hassle adding to each Property Sheet

    Go to Windows OS System Properties > Environment Variables, just New and input the Variable e.g.: MY_PATH and value e.g.: D:\Dev_Path\

    after that you have to restart your Visual Studio, you should be able to have ${MY_PATH} in macro list

    p/s: just notice Jason Williams answered above is the OS Environment Variables method

提交回复
热议问题