Commit bd395996 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

fix oqgraph on MSVC

parent b69e8d46
...@@ -364,4 +364,7 @@ SET(HAVE_SOCKADDR_IN_SIN_LEN CACHE INTERNAL "") ...@@ -364,4 +364,7 @@ SET(HAVE_SOCKADDR_IN_SIN_LEN CACHE INTERNAL "")
SET(HAVE_SOCKADDR_IN6_SIN6_LEN CACHE INTERNAL "") SET(HAVE_SOCKADDR_IN6_SIN6_LEN CACHE INTERNAL "")
SET(HAVE_VALGRIND CACHE INTERNAL "") SET(HAVE_VALGRIND CACHE INTERNAL "")
SET(HAVE_EVENT_H CACHE INTERNAL "") SET(HAVE_EVENT_H CACHE INTERNAL "")
SET(HAVE_LINUX_UNISTD_H CACHE INTERNAL "")
SET(HAVE_SYS_UTSNAME_H CACHE INTERNAL "")
SET(HAVE_PTHREAD_ATTR_GETGUARDSIZE CACHE INTERNAL "")
ENDIF() ENDIF()
...@@ -4,9 +4,13 @@ IF(NOT Boost_FOUND) ...@@ -4,9 +4,13 @@ IF(NOT Boost_FOUND)
ENDIF() ENDIF()
INCLUDE_DIRECTORIES(BEFORE ${Boost_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(BEFORE ${Boost_INCLUDE_DIRS})
# lp:756966 OQGRAPH on Win64 does not compile IF(MSVC)
IF(MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 8) # lp:756966 OQGRAPH on Win64 does not compile
SET(BOOST_OK 0) IF (CMAKE_SIZEOF_VOID_P EQUAL 8)
SET(BOOST_OK 0)
ELSE()
SET(BOOST_OK 1)
ENDIF()
ELSE() ELSE()
# See if that works. On old gcc it'll fail because of -fno-rtti # See if that works. On old gcc it'll fail because of -fno-rtti
CHECK_CXX_SOURCE_COMPILES( CHECK_CXX_SOURCE_COMPILES(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment