mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 19:41:47 +01:00
33a60e7fb6
Note: to build with -fno-rtti as we currently build the server, boost version 1.45 or later is required. (without -fno-rtti, 1.40 is enough)
26 lines
794 B
CMake
26 lines
794 B
CMake
FIND_PACKAGE(Boost 1.45.0) # we need at least 1.45 if we want -fno-rtti for the server
|
|
IF(NOT Boost_FOUND)
|
|
RETURN()
|
|
ENDIF()
|
|
INCLUDE_DIRECTORIES(BEFORE ${Boost_INCLUDE_DIRS})
|
|
|
|
# lp:756966 OQGRAPH on Win64 does not compile
|
|
IF(MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
SET(BOOST_OK 0)
|
|
ELSE()
|
|
SET(BOOST_OK 1)
|
|
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-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)
|