[fpc-pascal] Environment Variables with Include Directive

Andrew Brunner andrew.t.brunner at gmail.com
Sun Jul 26 17:13:15 CEST 2009


I've got a situation where I'm wanting to concatenate a path from the
environment with a string to specify the path to the actual file to
include when building.

PATH_TO_DATA_INCLUDES = '/mnt/Source/Includes/Data/

{$i %PATH_TO_DATA_INCLUDES%+definitions.inc}

Is there any way to get FPC to join the two entries together to create
a single include reference?

Thanks



More information about the fpc-pascal mailing list