diff options
author | Kenneth Heafield <kheafiel@cluster01.lti.ece.cmu.local> | 2012-05-12 15:18:29 -0400 |
---|---|---|
committer | Kenneth Heafield <kheafiel@cluster01.lti.ece.cmu.local> | 2012-05-12 15:18:29 -0400 |
commit | a65a80c5d5b6fc4cbd32280f07cae9be71551b70 (patch) | |
tree | 896209332f4b9b85dd34418d1887a664550c77d2 /Jamroot | |
parent | a097d3ea4132ba4c39c670185a3f4237d24030f9 (diff) |
with-google-hash option, more respect for environment variables
Diffstat (limited to 'Jamroot')
-rw-r--r-- | Jamroot | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -1,10 +1,21 @@ +#cdec compilation with bjam +# +#--with-boost=/usr/include +#--with-google-hash=/usr/include so that $with-google-hash/google/dense_hash_map exists +# +#-a forces the build to run from scratch +#-jN parallelizes just like make +# +#Respects CXXFLAGS, CFLAGS, and LDFLAGS environment variables. + path-constant TOP : . ; include $(TOP)/jam-files/sanity.jam ; boost 104400 ; external-lib z ; -if [ test_header google/dense_hash_map ] { - requirements += <define>HAVE_SPARSEHASH ; +with-google-hash = [ option.get "with-google-hash" ] ; +if [ test_header google/dense_hash_map ] || $(with-google-hash) { + requirements += <define>HAVE_SPARSEHASH <include>$(with-google-hash) ; } if [ test_header boost/serialization/map.hpp ] && [ test_library boost_serialization ] { |