Fix oqgraph so it can be built on Window as well.
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)
This commit is contained in:
parent
e45a6a1702
commit
33a60e7fb6
@ -1,14 +1,14 @@
|
|||||||
CHECK_CXX_SOURCE_COMPILES(
|
FIND_PACKAGE(Boost 1.45.0) # we need at least 1.45 if we want -fno-rtti for the server
|
||||||
"#include <boost/version.hpp>
|
IF(NOT Boost_FOUND)
|
||||||
#if BOOST_VERSION >= 104000
|
RETURN()
|
||||||
#else
|
ENDIF()
|
||||||
#error oops
|
INCLUDE_DIRECTORIES(BEFORE ${Boost_INCLUDE_DIRS})
|
||||||
#endif
|
|
||||||
int main() { return 0; }" BOOST_OK)
|
|
||||||
|
|
||||||
# lp:756966 OQGRAPH on Win64 does not compile
|
# lp:756966 OQGRAPH on Win64 does not compile
|
||||||
IF(MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
IF(MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
SET(BOOST_OK 0)
|
SET(BOOST_OK 0)
|
||||||
|
ELSE()
|
||||||
|
SET(BOOST_OK 1)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(BOOST_OK)
|
IF(BOOST_OK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user