Skip to content

Commit

Permalink
Fix build on arm64 (#3)
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
azeey and j-rivero committed May 7, 2024
1 parent 11c724f commit 7895959
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ project(gz_ogre_next_vendor)
find_package(ament_cmake REQUIRED)
find_package(ament_cmake_vendor_package REQUIRED)

set(EXTRA_CMAKE_FLAGS)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*|arm64.*|ARM64.*|arm.*|ARM.*)")
# Flags for non SIMD architectures
# https://github.com/gazebo-forks/ogre-2.3-release/blob/960bb19664879282b979e4ed8cb3ce278c875bdb/debian/rules#L21-L28
set(EXTRA_CMAKE_FLAGS -DOGRE_SIMD_NEON:BOOL=FALSE -DOGRE_SIMD_SSE2:BOOL=FALSE)
endif()

ament_vendor(${PROJECT_NAME}
VCS_URL https://github.com/OGRECave/ogre-next.git
VCS_VERSION v2.3.3
Expand All @@ -24,6 +31,7 @@ ament_vendor(${PROJECT_NAME}
-DOGRE_USE_NEW_PROJECT_NAME:BOOL=ON
-DOGRE_VULKAN_WINDOW_NULL:BOOL=TRUE
-DOGRE_VULKAN_WINDOW_XCB:BOOL=ON
${EXTRA_CMAKE_FLAGS}
GLOBAL_HOOK
PATCHES
patches/0001-Fix-incomplete-vulkan-linkage.patch
Expand Down

0 comments on commit 7895959

Please sign in to comment.