mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-26 12:41:35 +03:00
fixed 32-bit linux crypto++ compile errors
This commit is contained in:
parent
918a363fdd
commit
08318e52ff
@ -50,9 +50,14 @@ else()
|
|||||||
add_definitions(-DCRYPTOPP_DISABLE_ASM)
|
add_definitions(-DCRYPTOPP_DISABLE_ASM)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (APPLE)
|
if (UNIX)
|
||||||
# osx goes bat-shit crazy if we dont use these magical arguments.
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -pipe")
|
||||||
set(CMAKE_CXX_FLAGS "-O2 -DCRYPTOPP_DISABLE_ASM -pipe -Wno-tautological-compare")
|
|
||||||
|
if (APPLE)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch x86_64 -arch i386 -Wno-tautological-compare")
|
||||||
|
else()
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(cryptopp STATIC ${cpp_src})
|
add_library(cryptopp STATIC ${cpp_src})
|
||||||
|
Loading…
Reference in New Issue
Block a user