Visual Studio - Where to define custom path macros?

前端 未结 8 1832
别那么骄傲
别那么骄傲 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:48

    The way for the latest visual studio versions (2015+) Is as follows:

    To create a user-defined macro:

    1. In the Property Manager window (on the menu bar, choose View, Property Manager), open the shortcut menu for a property sheet (its name ends in .user) and then choose Properties.
    2. The Property Pages dialog box for that property sheet opens. In the left pane of the dialog box, select User Macros. In the right pane, choose the Add Macro button to open the Add User Macro dialog box.
    3. In the dialog box, specify a name and value for the macro. Optionally, select the Set this macro as an environment variable in the build environment check box.

    Source

提交回复
热议问题