Skip to content

Commit 3df9c87

Browse files
committed
BUILD: Also set std compiler flag in boost.m4
1 parent 5e0ef7e commit 3df9c87

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

configure.ac

+3
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ if test "x$with_std" = "xyes"; then
167167
esac;
168168
fi
169169

170+
BOOST_STD="$STD"
171+
170172
AC_SUBST(STD)
173+
AC_SUBST(BOOST_STD)
171174

172175
dnl Link-time optimization
173176
AC_ARG_WITH([lto], [AS_HELP_STRING([--with-lto], [Compile with link-time optimization @<:@default=no@:>@])], [], [with_lto=no])

m4/boost.m4

+3-1
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,11 @@ AC_LANG_POP([C++])dnl
216216
BOOST_CPPFLAGS=
217217
;;#(
218218
*)
219-
AC_SUBST([BOOST_CPPFLAGS], ["-I$boost_cv_inc_path"])dnl
219+
BOOST_CPPFLAGS="-I$boost_cv_inc_path"
220220
;;
221221
esac
222+
BOOST_CPPFLAGS="$BOOST_STD $BOOST_CPPFLAGS"
223+
AC_SUBST([BOOST_CPPFLAGS])
222224
if test x"$boost_cv_inc_path" != xno; then
223225
AC_DEFINE([HAVE_BOOST], [1],
224226
[Defined if the requested minimum BOOST version is satisfied])

0 commit comments

Comments
 (0)