Boost logo

Boost-Build :

From: Motonari Ito (motonari_at_[hidden])
Date: 2005-10-03 18:56:03


Hi,

[Question]

The bjam creates object files at somewhere like output\module\msvc-7.1
\debug\threading-multi. How can I get the location and pass it to
compiler through <cxxflags>?

[Background]

I have a project with precompiled headers. Since bjam doesn't officially
support precompiled header compilation yet, we use <cxxflags> to make it
work.

The msvc compiler has a option to create precompiled header at specified
location (/Fp). So, I want to do something like below. Now, how can I
specify [TARGET_LOCATION] such that it locates the directory of pch_obj.
obj?

#-----------------------------
# The precompiled header Target Jamfile
project pch : requirements
<cxxflags>-Yc
<cxxflags>-Fp[TARGET_LOCATION]pch.pch
: usage-requirements
<cxxflags>-Yupch.hpp
<cxxflags>-Fp[TARGET_LOCATION]pch.pch
<include>.
;

obj pch_obj : pch.cpp ;

#-----------------------------
# Main target Jamfile
exe hello : hello.cpp pch//pch_obj ;

[Environment]
- VC7.1
- Boost-build v2 CVS version.

Thank you.

----
Motonari Ito (motonari_at_[hidden])
 

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