List Info

Thread: How to build release and debug variants ?




How to build release and debug variants ?
country flaguser name
Netherlands
2007-05-07 04:54:23
Hi

The thread on alternative selection has been interesting
because we are coming 
up against this very problem. This is the sort of Jamfile
we'd like to use


lib a : : <name>a <search>./install/lib/release
<variant>release ;
lib a : : <name>a <search>./install/lib/debug
<variant>debug ;

exe progA : main.cpp a : : ;

However that fails with "error: No best alternative for
./a"


We've tried various combinations but the only method that
has worked so far is 
to rename the debug libraries after they have been built.

lib a : : <name>a <search>./install/lib/release
<variant>release ;
lib a : : <name>a_d <search>./install/lib/debug
<variant>debug ;

exe progA : main.cpp a ;

Is this the only solution ?

Regards
Hassan



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

[1]

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