Navigation Menu

Skip to content

Commit

Permalink
mysql8: require C++ 11
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 26, 2018
1 parent 277118f commit 9d15a0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -269,6 +269,10 @@ else()
endif()
set_mysql_config_value("--cflags" MYSQL_CFLAGS)
set_mysql_config_value("--version" MYSQL_VERSION)
if(${MYSQL_VERSION} VERSION_GRETER "7")
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQURED TRUE)
endif()
endif()

if(${MYSQL_VERSION} VERSION_LESS "5.5.0")
Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Expand Up @@ -212,6 +212,9 @@ AC_DEFUN([CONFIG_OPTION_MYSQL],[
5.5|5.6|10.*)
MYSQL_CXXFLAGS="$MYSQL_CXXFLAGS -fno-rtti"
;;
8.*)
AX_CXX_COMPILE_STDCXX_11([ext], [mandatory])
;;
*)
:
;;
Expand Down

0 comments on commit 9d15a0f

Please sign in to comment.