From 728ad02d61704eeed6eb72f538adbe59f08f7295 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Fri, 5 Apr 2013 00:01:54 +0000 Subject: [PATCH] added cmake flags for 64-bit crypto++ build, apparently disabling asm build helps, feels sketchy --- tools/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 2a693902..8b0c1c79 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -22,6 +22,14 @@ if (WIN32) list(APPEND cpp_src ${cpp_hdr}) endif() +if (WIN32) +if (CMAKE_SIZEOF_VOID_P EQUAL 8) # 64-bit + # do not compile crypto++ ASM on 64-bit windows, we just get + # bunch of linker errors. + set (CMAKE_CXX_FLAGS "/DCRYPTOPP_DISABLE_ASM /EHsc") +endif() +endif() + if (APPLE) # osx goes bat-shit crazy if we dont use these magical arguments. set (CMAKE_CXX_FLAGS "-O2 -DCRYPTOPP_DISABLE_ASM -pipe -Wno-tautological-compare")