Skip to content

Commit 710ef66

Browse files
authored
Update bootstrap.h to work properly when boost is not already installed (#612)
1 parent 7a8b476 commit 710ef66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if [ ! -z "${DESIRED_BOOST_DIR}" ]; then
8484
else
8585
# New way of installing boost:
8686
# Check whether we have the required boost packages installed
87-
BOOST_VERSION=$(echo -e '#include <boost/version.hpp>\nBOOST_LIB_VERSION' | gcc -s -x c++ -E - 2>/dev/null| grep "^[^#;]" | tr -d '\"')
87+
(BOOST_VERSION=$(echo -e '#include <boost/version.hpp>\nBOOST_LIB_VERSION' | gcc -s -x c++ -E - 2>/dev/null| grep "^[^#;]" | tr -d '\"')) || true
8888

8989
if [ -z "$BOOST_VERSION" ] ;then
9090
if [ -x "$(command -v pacman)" ]; then

0 commit comments

Comments
 (0)