« Return to Thread: Multiple calls to "using boost" with the same version

Re: Multiple calls to "using boost" with the same version

by Steven Watanabe-4 :: Rate this Message:

Reply to Author | View in Thread

AMDG

Anthony Foglia wrote:

>     In our project we have a sysdefs.jam file at the top of the
> directory structure that sets up the rules for most of the libraries.  
> I just replaced the 200+ lines we had for boost libraries with aliases
> to the boost libraries as defined in the boost.jam file that comes
> with boost.
>
>     While working up to this change, I set up a user-config.jam of my
> own to set up boost.  Very simple, configures both the system version
> of boost 1.35, and a version of 1.38 I downloaded and compiled in my
> home directory.
>
>     When I changed our repository code, since we haven't been using
> site-config.jam, I put a "using boost" rule in our sysdefs.jam file
> (located in the same directory as our Jamroot).  Bjam complained that
> "Boost 1.35 already configured."
>
>     I patched boost.jam to test for duplicate initializations, and if
> the new settings are the same as the old, do nothing.  (And print a
> warning if .debug-configuration is set.)

That's probably the best solution.

>     Is there a better way?  Should/Can I test before calling "using
> boost" in the sysdefs to see if it's been defined earlier (e.g.
> user-config.jam)?  Should/Can I catch the error instead?
>

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

 « Return to Thread: Multiple calls to "using boost" with the same version