Boost logo

Boost-Build :

From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2006-10-12 00:17:43


Hello,

I'd like to define a lib target such that in its usage requirements, it adds
a preprocessor define (through -D) when lanuching the msvc compiler, which
expands to the name of the .cpp file being compiled, similarly to
__BASE_FILE__ on gcc.

The end result I need is this: when a header file of the said library is
included in a cpp from another location, the library header file gets the
name of the including cpp.

Is there an easy way to do this? Note that __BASE_FILE__ is not supported by
msvc.

Thanks,
Emil


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk