Skip to content

Commit

Permalink
Merge pull request #1300 from Katawann/pr-bug-build-armv6_7
Browse files Browse the repository at this point in the history
cmake: include atomic library for armv6 and armv7
  • Loading branch information
JonasVautherin authored Feb 1, 2021
2 parents bd52ec3 + 0c56794 commit fb01687
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ if(ANDROID)
)
endif()

if(BUILD_STATIC_MAVSDK_SERVER AND ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU"))
if( (BUILD_STATIC_MAVSDK_SERVER AND ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU"))
OR (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "(armv6|armv7)") )
target_link_libraries(mavsdk PRIVATE atomic)
endif()

Expand Down

0 comments on commit fb01687

Please sign in to comment.