Skip to content

Commit

Permalink
add sysroot only for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed May 25, 2024
1 parent b6935fb commit d0c9bca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "armv.*")
set (CMAKE_FIND_ROOT_PATH ${WEBRTCROOT}/src/build/linux/debian_bullseye_arm-sysroot)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm64")
set (CMAKE_FIND_ROOT_PATH ${WEBRTCROOT}/src/build/linux/debian_bullseye_arm64-sysroot)
endif()
MESSAGE("CMAKE_FIND_ROOT_PATH = ${CMAKE_FIND_ROOT_PATH}")
if (DEFINED CMAKE_FIND_ROOT_PATH)
add_compile_options(--sysroot=${CMAKE_FIND_ROOT_PATH})
endif()
MESSAGE("CMAKE_FIND_ROOT_PATH = ${CMAKE_FIND_ROOT_PATH}")

# alsa ?
find_package(ALSA QUIET)
Expand Down

0 comments on commit d0c9bca

Please sign in to comment.