Use C++14 by default in configure when using CEF
Don't default to C++11 as CEF headers are not compatible with it, so configure would succeed but the build would then fail.
This commit is contained in:
parent
7aec5a7e62
commit
b4380b5f9e
2 changed files with 24 additions and 2 deletions
12
configure
vendored
12
configure
vendored
|
|
@ -15340,8 +15340,18 @@ if test "$CXX" = "g++" -a "$GXX" != "yes"; then
|
|||
as_fn_error $? "C++ compiler is needed to build wxWidgets" "$LINENO" 5
|
||||
fi
|
||||
|
||||
case "${wxWITH_CXX-11}" in
|
||||
if test "$wxUSE_WEBVIEW_CHROMIUM" = "yes"; then
|
||||
wxDEFAULT_CXXSTD=14
|
||||
else
|
||||
wxDEFAULT_CXXSTD=11
|
||||
fi
|
||||
|
||||
case "${wxWITH_CXX-wxDEFAULT_CXXSTD}" in
|
||||
11)
|
||||
if test "$wxUSE_WEBVIEW_CHROMIUM" = "yes"; then
|
||||
as_fn_error $? "Using wxWebView Chromium backend requires C++14 or later." "$LINENO" 5
|
||||
fi
|
||||
|
||||
ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
|
||||
ac_ext=cpp
|
||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue