Skip to content

Commit

Permalink
Fix macOS test failures by registering components in the core library (
Browse files Browse the repository at this point in the history
…#2220)

Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey authored Nov 1, 2023
1 parent 4f8fcda commit 20ee4df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/SdfEntityCreator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
#include "gz/sim/Events.hh"
#include "gz/sim/SdfEntityCreator.hh"

#ifdef __APPLE__
// Include all known components to ensure that they are registered by the core
// library instead of a plugin to fix
// https://github.com/gazebosim/gz-sim/issues/2204.
//
// NOTE(azeey): This should not be forward ported to ign-gazebo6.
#include "gz/sim/components/components.hh"
#endif
#include "gz/sim/components/Actor.hh"
#include "gz/sim/components/AirPressureSensor.hh"
#include "gz/sim/components/Altimeter.hh"
Expand Down

0 comments on commit 20ee4df

Please sign in to comment.