diff --git a/CMakeLists.txt b/CMakeLists.txt index 495b8d9c5..b9ad2c5e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -186,6 +186,11 @@ else() endif() endif() +# Raspberry Pi model 3 and higher (ARM Cortex-A53 minimum). +if(BCMHOST) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -latomic -mcpu=cortex-a53 -mfpu=neon-fp-armv8") +endif() + if(ASAN AND TSAN) message(FATAL_ERROR "-- AddressSanitizer and ThreadSanitizer can't be combined") endif()