Subject: Re: [Boost-build] adding custom modules
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2018-05-14 02:21:14
On 05/13/2018 10:35 AM, Stefan Seefeld via Boost-build wrote:
> On 2018-05-06 10:49 PM, Stefan Seefeld wrote:
>> I'm still a bit confused about the exact semantics of the "using" and
>> "import" directives.Â So now I'm using
>> import clblas ;
>> using clblas ;
>> In a Jamfile, with a `clblas.jam` file in the same directory, which
>> works fine. Now the next step: I want to define `clblas` similar to
>> other third-party libraries, such that I can invoke `using clblas ...`
>> with some appropriate paths from my `user-config.jam` file, to set the
>> environment on the build machine. But AFAIU, `user-config.jam` is read
>> in before any local (project-specific) Jamfiles are read. So where
>> would I have to put the `clblas.jam` file for `user-config.jam` to
>> find it ?
> Ping ?
Sorry for the delay. I was at C++Now last week.
You need to add the path to clblas.jam to $BOOST_BUILD_PATH
somehow. I know that this is a problem, but I don't
have a good solution. It might be possible for me to
make `using` lazy somehow, but the resulting non-deterministic
initialization order is likely to cause surprises.
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