mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-23 19:38:26 +02:00
fixed: Bug #3939 - Compile fails on ARM (Raspberry Pi) because of cryptopp/Crypto++ lib
This commit is contained in:
parent
2954fd6690
commit
10e974970e
1 changed files with 5 additions and 1 deletions
|
@ -80,7 +80,11 @@ if (UNIX)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-tautological-compare")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-tautological-compare")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
|
set(CRYPTOPP_ARCH "native")
|
||||||
|
if ("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "^arm.*")
|
||||||
|
set(CRYPTOPP_ARCH "armv6zk")
|
||||||
|
endif()
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=${CRYPTOPP_ARCH}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue