|
Boost-Build : |
From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-11-01 12:22:05
John Maddock wrote:
> Rene, your suggestion almost works, but I'm seeing corrupted path names
> passed to the compiler like this:
>
> FileClone config/has_tr1_array_pass.cpp
> gcc-C++-action
> ../../../bin/boost/libs/tr1/test/has_tr1_array_pass.test/gcc/debug/has_tr1_array_pass.o
> g++: <@boost!libs!tr1!test>config/has_tr1_array_pass.cpp: No such file or
> directory
> g++: no input files
>
>
> "g++" -c -Wall -ftemplate-depth-255 -g -O0 -fno-inline -I
> "/cygdrive/c/data/boost/develop/boost" -o
> "../../../bin/boost/libs/tr1/test/has_tr1_array_pass.test/gcc/debug/has_tr1_array_pass.o"
> "<@boost!libs!tr1!test>config/has_tr1_array_pass.cpp"
>
>
> ...failed gcc-C++-action
> ../../../bin/boost/libs/tr1/test/has_tr1_array_pass.test/gcc/debug/has_tr1_array_pass.o...
>
> Any ideas?
Yea, this works better:
local config-test-pass = [ stage config : [ GLOB
$(BOOST_ROOT)/libs/config/test : has_tr1*pass.cpp ] ] ;
for local filec in $(config-test-pass)
{
all_rules += [ compile $(filec:G=) ] ;
DEPENDS [ target-id-of $(filec:G=) ] : $(filec) ;
SEARCH on [ target-id-of $(filec:G=) ] = $(gLOCATE($(filec))) ;
}
But... the whole copy the test source files approach has one problem.
When I run those test I get this error:
C:\DevRoots\Boost\build\libs\tr1\test\config\has_tr1_array_pass.cpp(22)
: fatal error C1083: Cannot open include file: 'test.hpp': No such file
or directory
And that is because the tests use relative includes, #include "test.hpp"
in this case. That file lives in the original libs/config/test directory
so it can't find it as that directory is not added with a -I option. And
I haven't yet figure out how to make BBv1 add that dir into the include :-(
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
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