Skip to content

Commit

Permalink
changed rosflight_sim to skip if gazebo not found
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutherland333 committed Apr 9, 2024
1 parent 436555d commit 38cc3de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rosflight_sim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ 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")
# Since Gazebo doesn't have an arm64 target, skip this package if gazebo is not found
find_package(gazebo_ros QUIET)
if(NOT gazebo_FOUND)
install(CODE "message(\"Gazebo not found, skipping ${PROJECT_NAME}\")")
return()
endif()

Expand Down

0 comments on commit 38cc3de

Please sign in to comment.