Skip to content

Commit

Permalink
sdk/CMakeLists.txt: handle 64bit pi flags
Browse files Browse the repository at this point in the history
Signed-off-by: SeptimiuVana <[email protected]>
  • Loading branch information
SeptimiuVana committed Jul 13, 2022
1 parent 79e5533 commit 45cc688
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sdk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ if (CMAKE_COMPILER_IS_GNUCC)
endif()

if ( RASPBERRYPI )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=neon -latomic")
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -latomic")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=neon -latomic")
endif()
include (${CMAKE_SOURCE_DIR}/cmake/raspberrypi-revision-config.cmake)
endif()

Expand Down

0 comments on commit 45cc688

Please sign in to comment.