diff --git a/rosflight_sim/CMakeLists.txt b/rosflight_sim/CMakeLists.txt index efa0f9b..6e257a4 100644 --- a/rosflight_sim/CMakeLists.txt +++ b/rosflight_sim/CMakeLists.txt @@ -14,6 +14,13 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") endif(NOT CMAKE_BUILD_TYPE) +# Since Gazebo doesn't have an arm64 target, skip this package if +# architecture is arm64 +message(${CMAKE_SYSTEM_PROCESSOR}) +if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64") + return() +endif() + find_package(ament_cmake REQUIRED) find_package(rclcpp REQUIRED) find_package(gazebo_dev)