Boost logo

Boost-Build :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2007-09-06 12:34:34


On 09/05/07 14:19, Vladimir Prus wrote:
[snip]
>
> Just calling a function does not automatically creates a main target.
> There are just two ways to create a main target:
>
> - Call the targets.main-target-alternative
> - Call some existing rule that creates main target. That will
> will eventually call targets.main-target-alternative
>
I tried the 1st way by modifying:

http://svn.boost.org/trac/boost/browser/trunk/tools/build/v2/example/customization/Jamfile

as follows:
<--- cut here ---
import verbatim ;
import targets ;

exe codegen : codegen.cpp class.verbatim usage.verbatim
     t1.verbatim ;

targets.main-target-alternative t1_cpp ;

verbatim t1_cpp : t1.verbatim ;
>--- cut here ---
but when I tried to create t1_cpp target, got:
<--- cut here ---
cd
/home/evansl/prog_dev/boost-svn/ro/trunk/tools/build/v2/example/customization/
bjam t1_cpp
/home/evansl/prog_dev/boost-svn/ro/trunk/tools/build/v2/build/targets.jam:1523:
in targets.main-target-alternative
rule t1_cpp.project unknown in module targets.
Jamfile:10: in load-aux
/home/evansl/prog_dev/boost-svn/ro/trunk/tools/build/v2/build/project.jam:318:
in load-jamfile
/home/evansl/prog_dev/boost-svn/ro/trunk/tools/build/v2/build/project.jam:68:
in load
/home/evansl/prog_dev/boost-svn/ro/trunk/tools/build/v2/build/project.jam:170:
in project.find
/home/evansl/prog_dev/boost-svn/ro/trunk/tools/build/v2/build-system.jam:239:
in load
/home/evansl/prog_dev/boost-svn/ro/trunk/tools/build/v2/kernel/modules.jam:261:
in import
/home/evansl/prog_dev/boost-svn/ro/trunk/tools/build/v2/kernel/bootstrap.jam:132:
in boost-build
/home/evansl/prog_dev/boost-svn/ro/trunk/tools/build/v2/example/boost-build.jam:6:
in module scope
>--- cut here ---
Could you please let me know how to correct this?

TIA.


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