Don't assume boost is always installed on the platform.

This commit is contained in:
Patrick Pelissier committed 2018-03-29 20:12:53 +02:00
1 parent bc83fe43e5
commit 54fa2c8635
1 file changed
+4 -2
+4 -2
View File
@@ -255,9 +255,11 @@ bench-xxhash0:
$(CC) $(CFLAGS) $(CPPFLAGS) -I "$${XXHASH}/" bench-xxhash.c "$${XXHASH}/libxxhash.a" -o bench-xxhash.exe
@./bench-xxhash.exe 70
# BOOST is assumed to be installed in the system
# BOOST shall point to the header location.
bench-boost:
$(CXX) $(CFLAGS) $(CPPFLAGS) bench-boost.cpp -o bench-boost.exe -lpthread
@if test -n "$${BOOST}" ; then $(MAKE) bench-boost0 ; else echo "Nothing to be done for BOOST." ; fi
bench-boost0:
$(CXX) $(CFLAGS) $(CPPFLAGS) -I "$${BOOST}" bench-boost.cpp -o bench-boost.exe -lpthread
@./bench-boost.exe 60
############################################################################