|
Boost-Build : |
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2006-05-12 12:45:21
The problem with user-config or site-config is that the <cflags> I need
propagated are warnings, and that they differe for release and debug.
Besides, I think you're incorrect when you say that <cflags> are not
propagated, because like I said in my original post, with my setup they are
propagated sometimes. Here is my setup:
Jamroot
|
+--- Jamfile 1
|
+--- Jamfile 2
|
+ Jamfile 3
If I put the <cflags> that disable warnings in the project defined in
Jamroot, or in Jamfile2, or in Jamfile3, it all works fine, and I can see
the flags on the command line when compiling Jamfile3 .cpp files.
But if I put them in Jamfile1, then they don't get propagated. Am I
experiencing a bug? What's the correct behavior here, are you sure that the
intention was not to propagate <cflags>?
--Emil
----- Original Message -----
From: "Ilya Sokolov" <fal_delivery_at_[hidden]>
To: <boost-build_at_[hidden]>
Sent: Friday, May 12, 2006 1:46 AM
Subject: Re: [Boost-build] Project requirements acting weird
> Hi, Emil!
> sorry, i dont speak english very well.
>
> you wrote:
>> I have a Jamfile which defines requirements to disable some msvc warnings
>> through <cflags> and <cxxflags>. Including Jamroot, I have 4 Jamfiles
>> relevant to the build request; the one that contains the project with the
>> warning-disabling requirements is just below Jamroot.
>>
>> The problem is that the warnings are not disabled. Yet, if I just move
>> the
>> requirements to any of the other 3 Jamfiles, they do get disabled, as
>> they
>> should!
> the <cflags> and <cxxflags> are not _propagated_ features. In your case
> the best solution is next:
>
> using msvc
> :
> :
> : <cflags>{your cflag}
> <cflags>{your cflag}
> <cxxflags>{your cxxflag}
> ;
>
> or
>
> using msvc
> :
> :
> : <compileflags>{your compileflag}
> <compileflags>{your compileflag}
> ;
>
> in your user-config.jam file. see
> http://boost.org/doc/html/bbv2/advanced.html#bbv2.advanced.configuration
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
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