mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
9292953d5a
.bzrignore: Ignore generated file emacs.h libmysqld/CMakeLists.txt: Remove direct usage of 'dbug' library This fixes that 'BUILD/compile-dist' works storage/oqgraph/CMakeLists.txt: Remove compiler option '-fno-rtti' as BOOST requires this
27 lines
808 B
CMake
27 lines
808 B
CMake
CHECK_CXX_SOURCE_COMPILES(
|
|
"#include <boost/version.hpp>
|
|
#if BOOST_VERSION >= 104000
|
|
#else
|
|
#error oops
|
|
#endif
|
|
int main() { return 0; }" BOOST_OK)
|
|
|
|
# lp:756966 OQGRAPH on Win64 does not compile
|
|
IF(MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
SET(BOOST_OK 0)
|
|
ENDIF()
|
|
|
|
IF(BOOST_OK)
|
|
ADD_DEFINITIONS(-DHAVE_OQGRAPH)
|
|
IF(MSVC)
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
|
|
ELSE(MSVC)
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
|
|
STRING(REPLACE "-fno-exceptions" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
|
STRING(REPLACE "-fno-rtti" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
|
STRING(REPLACE "-fno-implicit-templates" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
|
ENDIF(MSVC)
|
|
|
|
MYSQL_ADD_PLUGIN(oqgraph ha_oqgraph.cc graphcore.cc STORAGE_ENGINE
|
|
MODULE_ONLY)
|
|
ENDIF(BOOST_OK)
|