This article explains how to set directives specifically for individual build types.
Problem:
Is there a way to set directives specifically for individual build types? In other words, how to set directives specifically for Release and others for Debug?
Resolution:
Here are the steps to accomplish this:
-
Go to Project | Types of Build...
-
Select Debug under Types.
-
Click on the Change button.
-
Add directives to Build directives field by leaving a space between them.
-
Click on the OK button.
-
Select Release under Types.
-
Repeat steps 3 through 5.
-
Click on the Close button.
Note: The above settings are per project.