List Info

Thread: Re: conditional requirement broken?




Re: conditional requirement broken?
user name
2007-11-06 07:21:05
Hi,

> lib bayesian :  [ glob ../src/*.cpp ] :
<define>DEZIDE_EXPORT=1
>                                        :
<link>shared : 
> <define>DEZIDE_USE_DYNAMIC_LINKING=1 ;
> 
> 
> (The docs at
> http://www.boost.org/regression-logs/cs-win32_meta
comm/doc/htm
> l/bbv2/tutorial.html
> seems to miss spaces around ":")
> 
> Should this not work?

I think you should not put the spaces 
and write something like
lib bayesian :  [ glob ../src/*.cpp ] 
             : <define>DEZIDE_EXPORT=1
<link>shared:<define>DEZIDE_USE_DYNAMIC_LINKING=
1 ;

The lib rule follows the syntax.
http://www.boost.org/doc/html/bbv2/advan
ced.html#bbv2.main-target-rule-s
yntax

Putting the spaces around the ":" of conditionnal
will mean something
else.

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

Re: conditional requirement broken?
user name
2007-11-06 08:11:45
Renaud Lepere skrev:
> Hi,
> 
>> lib bayesian :  [ glob ../src/*.cpp ] :
<define>DEZIDE_EXPORT=1
>>                                        :
<link>shared : 
>> <define>DEZIDE_USE_DYNAMIC_LINKING=1 ;
>>
>>
>> (The docs at
>> http://www.boost.org/regression-logs/cs-win32_meta
comm/doc/htm
>> l/bbv2/tutorial.html
>> seems to miss spaces around ":")
>>
>> Should this not work?
> 
> I think you should not put the spaces 
> and write something like
> lib bayesian :  [ glob ../src/*.cpp ] 
>              : <define>DEZIDE_EXPORT=1
>
<link>shared:<define>DEZIDE_USE_DYNAMIC_LINKING=
1 ;
> 
> The lib rule follows the syntax.
> http://www.boost.org/doc/html/bbv2/advan
ced.html#bbv2.main-target-rule-s
> yntax
> 
> Putting the spaces around the ":" of
conditionnal will mean something
> else.

Ok, think I got it. The lack of error messages could
probably be improved.

To define two macros I have to write

   <link>shared:<define>XX=1
<link>shared:<define>YY=1

Anyway, many thanks.

-Thorsten

(I moved the _USE_DYNAMIC_LINKING macro to the Jamroot
because it is 
really a project wide setting.)


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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )