aboutsummaryrefslogtreecommitdiff
path: root/m4/ax_cxx_compile_stdcxx_11.m4
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2015-02-19 10:35:07 +0100
committermontellese <montellese@xbmc.org>2015-03-01 20:43:46 +0100
commite095d04ca39f84012acfc7a36dc5629cb74364c7 (patch)
tree0b7d401f12691c1b4d08e03ea4018171784c65c2 /m4/ax_cxx_compile_stdcxx_11.m4
parente9cf37c88f7873b470424dd37b5f07d75988b006 (diff)
cmake: add C++11 flag
Diffstat (limited to 'm4/ax_cxx_compile_stdcxx_11.m4')
-rw-r--r--m4/ax_cxx_compile_stdcxx_11.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/ax_cxx_compile_stdcxx_11.m4 b/m4/ax_cxx_compile_stdcxx_11.m4
index 2bc054d981..cee493a1ef 100644
--- a/m4/ax_cxx_compile_stdcxx_11.m4
+++ b/m4/ax_cxx_compile_stdcxx_11.m4
@@ -97,6 +97,8 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl
CXXFLAGS="$ac_save_CXXFLAGS"])
if eval test x\$$cachevar = xyes; then
CXXFLAGS="$CXXFLAGS $switch"
+ CXX11_SWITCH="$switch"
+ AC_SUBST(CXX11_SWITCH)
ac_success=yes
break
fi
@@ -117,6 +119,8 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl
CXXFLAGS="$ac_save_CXXFLAGS"])
if eval test x\$$cachevar = xyes; then
CXXFLAGS="$CXXFLAGS $switch"
+ CXX11_SWITCH="$switch"
+ AC_SUBST(CXX11_SWITCH)
ac_success=yes
break
fi