Commit 819b435e authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

merge

parents 64e43e1c fcd29b78
......@@ -13,6 +13,13 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
FIND_PACKAGE(Boost)
IF(Boost_FOUND)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
SET(CMAKE_REQUIRED_INCLUDES ${Boost_INCLUDE_DIRS})
ENDIF()
INCLUDE (CheckCXXSourceCompiles)
CHECK_CXX_SOURCE_COMPILES(
"#include <boost/version.hpp>
......@@ -22,7 +29,8 @@ CHECK_CXX_SOURCE_COMPILES(
#endif
int main() { return 0; }" BOOST_OK)
IF(BOOST_OK)
# Only compile OQGRAPH on 32 bit, 64 bit does not compile yet (LPBUG 756966)
IF(BOOST_OK AND CMAKE_SIZEOF_VOID_P EQUAL 4)
INCLUDE("${PROJECT_SOURCE_DIR}/storage/mysql_storage_engine.cmake")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_OQGRAPH /EHsc")
......
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