Comments (4)
Hey @artkiver,
I had the same issue and haven't taken the time to submit a pull request, but here's a patch you might want to try.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f3209c..d40d4ae 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,7 +50,12 @@ if (APPLE OR WIN32)
############################################################################
# MacOS
if (APPLE)
- set(CMAKE_OSX_ARCHITECTURES x86_64)
+ if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
+ set(CMAKE_OSX_ARCHITECTURES x86_64)
+ elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64")
+ set(CMAKE_OSX_ARCHITECTURES arm64)
+ endif()
+
set(CMAKE_FIND_FRAMEWORK LAST)
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++14")
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
from bonzomatic.
Hey @artkiver,
I had the same issue and haven't taken the time to submit a pull request, but here's a patch you might want to try.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f3209c..d40d4ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,7 +50,12 @@ if (APPLE OR WIN32) ############################################################################ # MacOS if (APPLE) - set(CMAKE_OSX_ARCHITECTURES x86_64) + if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64") + set(CMAKE_OSX_ARCHITECTURES x86_64) + elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64") + set(CMAKE_OSX_ARCHITECTURES arm64) + endif() + set(CMAKE_FIND_FRAMEWORK LAST) set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++14") set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
I tested this and it seems to have done the trick! No more prompt for Rosetta(2) to be installed!
I can prep and submit a PR if you prefer?
from bonzomatic.
Ah, nevermind! I see you already submitted a PR here!
LGTM!
Thanks!
from bonzomatic.
Merge 84ed5e7 closes this issue.
from bonzomatic.
Related Issues (20)
- GLX: Failed to create context: GLXBadFBConfig HOT 1
- Unable to get FFT working on windows (GLFW) HOT 3
- Sync Mode for online only events HOT 4
- [ubuntu] alsa sound dependency HOT 2
- Download and install HOT 8
- File access issues on macOS HOT 7
- cursor keys "Top" and "Right" move the cursor in the opposite direction under Linux HOT 7
- MacOS build fails HOT 3
- Bonzomatic doesn't restore resolution upon exit on linux (kwin/kde) HOT 3
- Build failure on macOS 10.13 HOT 3
- postExit command not executed on Linux HOT 3
- Segfault if load shader.glsl with national symbols in commentaries (UTF-8 trouble?) HOT 14
- Can't open Bonzomatic to fullscreen in Windows 10 Pro HOT 1
- How to forward user data between frames in Bonzomatic? HOT 5
- Too darkness texture HOT 4
- Quick reference or Documentation? HOT 5
- Unicode crash on FreeBSD
- Build failure on armv7 FreeBSD 13.1 HOT 1
- Low res text and ignored config.json on macOS Ventura 13.4 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bonzomatic.