|
Boost-Build : |
From: Patrick Frants (gclbb-jamboost_at_[hidden])
Date: 2002-09-05 11:13:09
Rene Rivera <grafik666_at_[hidden]> wrote in
news:20020905110740-r01010800-52a4cddf-0860-0108_at_12.100.89.43:
> [2002-09-05] Patrick Frants wrote:
>
>>Rene Rivera <grafik666_at_[hidden]> wrote in
>>news:20020905101656-r01010800-bfd6417c-0860-0108_at_12.100.89.43:
>>
>>> [2002-09-04] Rene Rivera wrote:
>>>>[2002-09-04] Patrick Frants wrote:
>>>>Taking alook at it now...
>>>
>>> Well after looking at it I'm not sure what your problem is.
>>> Duplicating the example on my machine, with a minor change, seems to
>>> work for me. I get the "-I ../IncludeDir" in the build commands. The
>>> minor change is that instead of "<include>$(SUBDIR)IncludeDir" it
>>> should be "<include>$(SUBDIR)/IncludeDir", but both ways worked for
>>> me also.
>>>
>>> Could you try and putting in this... in your Jamfiles to see what's
>>> going on...
>>>
>>> ECHO -- "$(SUBDIR)" -- ;
>>>
>>> If that ever prints out: "-- --", then that means the SUBDIR is
>>> getting set to empty, which would cause problems. For me in the
>>> project root it prints "-- . --" and in the subdir "-- .. --".
>>
>>I was too fast with my previous reply, but the argument about not
>>inheriting any of the settings still applies...
>>
>>For me it prints "-- . --" always. No matter wether I execute it from
>>the project root or the subdir. Here is the output with bjam -d2 for
>>both locations:
>
> More badness on my part, copied the output incorrectly accross
> machines...
>
>>from project-root:
>>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXC
>>: \BoostExample>bjam -d2
>>Jamrules: No such file or directory
>>-- . --
>>-- . --
>>-- SubDir --
> --^^^^^^^^^^^---- That is correct.
>
> So with my previous message you should have it working ;-)
It's not :-(
Now it correctly inherites all settings! But the includedir is wrong,
notice -I"..\..\IncludeDir". Somehow the $(SUBDIR) is expanded incorrectly.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
C:\BoostExample\SubDir>bjam -d2
..\Jamrules: No such file or directory
-- . --
-- .. --
-- .. --
-- . --
...found 22 targets...
...updating 4 targets...
MkDir1 ..\SubDir\bin\server.exe\msvc\debug\runtime-link-static\threading-
multi
mkdir ..\SubDir\bin\server.exe\msvc\debug\runtime-link-static
\threading-multi
vc-C++ ..\SubDir\bin\server.exe\msvc\debug\runtime-link-static\threading-
multi\main.obj
CALL "C:\Program Files\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT" >
nul
"C:\Program Files\Microsoft Visual Studio\VC98\bin\cl" /Zm400 -nologo
-GX -c -D_CONSOLE -DWIN32 -D_DEBUG /Zi /Od /Ob0 /GX /GR /MTd -I"..
\SubDir" -I"." -I"..\..\IncludeDir" /Fd"..\SubDir
\bin\server.exe\msvc\debug\runtime-link-static\threading-multi\vc60.pdb" -
Fo"..\SubDir\bin\server.exe\msvc\debug\runtime-link-static\threading-multi
\main.obj" -Tp"main.cpp"
main.cpp
command-file-dump-1st ..\SubDir\bin\server.exe\msvc\debug\runtime-link-
static\threading-multi\server.CMD
echo "..\SubDir\bin\server.exe\msvc\debug\runtime-link-static
\threading-multi\main.obj" > "..\SubDir\bin\server.exe\msvc\debug\runtime-
link-static\threading-multi\server.CMD"
vc-Link ..\SubDir\bin\server.exe\msvc\debug\runtime-link-static\threading-
multi\server.exe
CALL "C:\Program Files\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT" >
nul
"C:\Program Files\Microsoft Visual Studio\VC98\bin\link" /nologo
/DEBUG /out:"..\SubDir\bin\server.exe\msvc\debug\runtime-link-static
\threading-multi\server.exe" /LIBPATH:"C:\Program Fil
es\Microsoft Visual Studio\VC98\Lib" "advapi32.lib" @"..\SubDir\bin
\server.exe\msvc\debug\runtime-link-static\threading-multi\server.CMD"
...updated 4 targets...
C:\BoostExample\SubDir>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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