added cmake flags for 64-bit crypto++ build, apparently disabling asm build helps, feels sketchy
This commit is contained in:
parent
6a1dd395e1
commit
728ad02d61
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue