Share via


BUILD_CONSUMES

The BUILD_CONSUMES macro instructs the Build utility to delay building this directory until the directory that contains the corresponding BUILD_PRODUCES macro has been built.

This macro is set in your Sources file and is only applied during Pass 1 of the build process.

For any given string, the directory whose Sources file contains a BUILD_PRODUCES macro with that string will be built before any directories with a corresponding BUILD_CONSUMES macro.

For example, any directory whose Sources file contains this:

BUILD_PRODUCES = ThisString

will be built before any directories whose Sources file contains this:

BUILD_CONSUMES = ThisString

If you want to specify multiple BUILD_CONSUMES strings in one Sources file, there are two ways to do it. You can specify them on one line:

BUILD_CONSUMES= String1 String2 String3

or you can specify them on separate lines:

BUILD_CONSUMES = String1
BUILD_CONSUMES = String2
BUILD_CONSUMES = String3

For more information, see Building on a Multiprocessor Computer.

 

 

Send comments about this topic to Microsoft

Build date: 5/3/2011