Navigation Menu

Skip to content

Commit

Permalink
cmake: use -fno-rtti for MySQL < 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 24, 2018
1 parent d35ba0a commit 76fdfd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Expand Up @@ -384,7 +384,8 @@ else()
mrn_build_flag("-Wno-strict-aliasing")
mrn_build_flag("-Wno-deprecated")
mrn_check_cxxflag("-felide-constructors")
if("${MYSQL_VARIANT}" STREQUAL "MariaDB")
if("${MYSQL_VARIANT}" STREQUAL "MariaDB" OR
${MYSQL_VERSION} VERSION_LESS "5.7.0")
mrn_check_cxxflag("-fno-rtti")
endif()
endif()
Expand Down

0 comments on commit 76fdfd3

Please sign in to comment.