diff --git a/rviz_ogre_vendor/CMakeLists.txt b/rviz_ogre_vendor/CMakeLists.txt index dcdfafbf8..dd0c191e0 100644 --- a/rviz_ogre_vendor/CMakeLists.txt +++ b/rviz_ogre_vendor/CMakeLists.txt @@ -72,6 +72,11 @@ if(NOT WIN32) list(APPEND OGRE_CMAKE_ARGS -DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON) endif() +if(APPLE) + list(APPEND ORGE_CMAKE_ARGS -DOGRE_ENABLE_PRECOMPILED_HEADERS:BOOL=OFF) + list(APPEND OGRE_CMAKE_ARGS -DCMAKE_OSX_ARCHITECTURES=arm64;x86_64) +endif() + ament_vendor(ogre_vendor VCS_URL https://github.com/OGRECave/ogre.git VCS_VERSION v1.12.10