mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 20:25:32 +02:00
MDEV-336 oqgraph 5.5 crashes in buildbot
make CMakeLists.txt to detect if the installed boost can be compiled with the installed compile and specified set of compiler options. Background: even sufficiently new Boost cannot be compiled with the sufficiently old gcc in the presence of -fno-rtti
This commit is contained in:
parent
0117a92fed
commit
6d4acc43e5
1 changed files with 8 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FIND_PACKAGE(Boost 1.45.0) # we need at least 1.45 if we want -fno-rtti for the server
|
||||
FIND_PACKAGE(Boost 1.40.0)
|
||||
IF(NOT Boost_FOUND)
|
||||
RETURN()
|
||||
ENDIF()
|
||||
|
|
@ -8,7 +8,13 @@ INCLUDE_DIRECTORIES(BEFORE ${Boost_INCLUDE_DIRS})
|
|||
IF(MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
SET(BOOST_OK 0)
|
||||
ELSE()
|
||||
SET(BOOST_OK 1)
|
||||
# See if that works. On old gcc it'll fail because of -fno-rtti
|
||||
CHECK_CXX_SOURCE_COMPILES(
|
||||
"
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/property_map/property_map.hpp>
|
||||
int main() { return 0; }
|
||||
" BOOST_OK)
|
||||
ENDIF()
|
||||
|
||||
IF(BOOST_OK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue