summaryrefslogtreecommitdiff
path: root/Jamroot
diff options
context:
space:
mode:
authorKenneth Heafield <kheafiel@cluster01.lti.ece.cmu.local>2012-05-12 15:18:29 -0400
committerKenneth Heafield <kheafiel@cluster01.lti.ece.cmu.local>2012-05-12 15:18:29 -0400
commit2f64af3e06a518b93f7ca2c30a9d0aeb2c947031 (patch)
tree2e771748fadfaf24152883e4664552ceaef455d9 /Jamroot
parent5d2fba19f7989b8a2c55834a5735f5fd5b60197c (diff)
with-google-hash option, more respect for environment variables
Diffstat (limited to 'Jamroot')
-rw-r--r--Jamroot15
1 files changed, 13 insertions, 2 deletions
diff --git a/Jamroot b/Jamroot
index b5b786cd..f873db68 100644
--- a/Jamroot
+++ b/Jamroot
@@ -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 ] {