File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 8d23a299a..f58c62831 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -76,7 +76,11 @@ endif()
6
+
7
+ if(APPLE)
8
+ list(APPEND OGRE_CMAKE_ARGS -DOGRE_ENABLE_PRECOMPILED_HEADERS:BOOL=OFF)
9
+ - list(APPEND OGRE_CMAKE_ARGS -DCMAKE_OSX_ARCHITECTURES=arm64;x86_64)
10
+ + if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm64")
11
+ + list(APPEND OGRE_CMAKE_ARGS "-DCMAKE_OSX_ARCHITECTURES='arm64'")
12
+ + else()
13
+ + list(APPEND OGRE_CMAKE_ARGS "-DCMAKE_OSX_ARCHITECTURES='x86_64'")
14
+ + endif()
15
+ endif()
16
+
17
+ ament_vendor(ogre_vendor
1
18
diff --git a/patches/0005-fix-macos-arm64.patch b/patches/0005-fix-macos-arm64.patch
2
19
new file mode 100644
3
20
index 000000000..9494cc9ae
You can’t perform that action at this time.
0 commit comments