Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2004-08-16 09:39:22


Toon Knapen <toon.knapen_at_[hidden]> writes:

> Reece Dunn wrote:
>
>
>> The name f.compile refers to the tool f (f.jam) and the associated action
>> compile. The action if f.jam is declared as
>>
>> actions inline-file
>>
>> So you would need:
>>
>> flags f.inline-file INCLUDES <include> ;
>>
>> This should work.
>
> And it does ..... if I don't use a variable inside the
> include-specification. For instance
>
> lib lib1 : function.f : <include>/home/tk/path_to_include_dir ;
>
> works but
>
> lib lib1 : function.f : <include>$(PATH_TO_INC_DIR) ;
>
> does not work.

It does work, but it works differently. You are getting the local
value of the variable. Variables from the environment are imported
into the global (empty) module:

include-dir = [ modules.peek : PATH_TO_INC_DIR ] ;
lib lib1 : function.f : <include>$(include-dir) ;

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
 

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