Next: Specifying the Exec Directory, Previous: Source Files, Up: Common Sources with Different Switches and Different Output Directories
Several project properties are modeled by Ada-style attributes;
you define the property by supplying the equivalent of an Ada attribute
definition clause in the project file.
A project's object directory is such a property; the corresponding
attribute is Object_Dir
, and its value is a string expression. A
directory may be specified either as absolute or as relative; in the latter
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.