Next: , Previous: Source Files, Up: Common Sources with Different Switches and Directories


Specifying the Object Directory

Several project properties are modeled by Ada-style attributes; a property is defined by supplying the equivalent of an Ada attribute definition clause in the project file. A project's object directory is another such a property; the corresponding attribute is Object_Dir, and its value is also a string expression, specified either as absolute or relative. In the later case, it is relative to the project file directory. Thus the compiler's output is directed to /common/debug (for the Debug project) and to /common/release (for the Release project). If Object_Dir is not specified, then the default is the project file directory itself.