All directives specified at a project level are used when a project compiles, apart from those overridden by settings for
individual files, folders or build configurations.
- Select the required project, and then on the
Project menu, select
Properties.
- Select
.
- Select one or more of the appropriate options:
- For non-preprocessor directives:
-
- Click
COBOL.
- Click
Enable configuration specific settings.
- Select the menu option, as appropriate; most will equate to a Compiler directive.
- For any additional directives that need setting, in the
Additional directives value cell, click
and use the
Additional directives dialog box to specify the directives. Separate each directive with a space. .
- For SQL preprocessor directives:
- This option enables you to configure an SQL preprocessor and its directives.
- Click
.
- Click
Enable configuration specific settings.
- Check
Use SQL Preprocessor, and then from the
Preprocessor Type drop-down list, choose the appropriate preprocessor.
- On the
Directives grid, complete the
Value field for each directive you want to set, and then click
Apply.
The SQL Compiler directives you have selected appear in the
SQL Directives text box.
- For other preprocessor directives
- This option enables you to configure other, non-SQL preprocessors and their directives.
- Click
.
- Click
Enable configuration specific settings.
- Use the options to install and configure existing or new preprocessors, including setting the directives (Edit), and setting the order in which the preprocessors are stacked (Up/Down).
- Click
Apply
- Click
Apply and Close.
The Compiler directives are saved with the project, so that they are used on all files in the project the next time you build
the project.
Directives set here can be overridden by directives specified in build configurations, folder properties, or for individual
source files.