New Homebrew path for cmake
Hi there,
I was trying to build the Xcode project on my new MacBook Air M1 and it was erroring out saying "Could not find cmake; install it from the official distribution, Homebrew or MacPorts"
I installed cmake via Homebrew and it still errored out.
Running a "which cmake" in my terminal printed out: /opt/homebrew/bin/cmake
I found the error coming from "./Vendor/OpenEmuShaders/3rdparty/find-cmake.sh"
At the top of this file, there is a variable called "known_cmake_paths." I edited the line and added "/opt/homebrew/bin/cmake" and now it builds properly.
The variable now reads:
known_cmake_paths="/usr/local/bin/cmake \
/opt/local/bin/cmake \
/Applications/CMake.app/Contents/bin/cmake \
/opt/homebrew/bin/cmake"
Turns out all new homebrew installed apps on Apple Silicon now use the "/opt/homebrew" prefix since version 3.0. (https://brew.sh/2021/02/05/homebrew-3.0.0/)
I realize this is in the VENDOR folder and most likely an OpenEmu issue first but wanted to mention it. I will look at their repo and see if it's been updated/notified at all.
Part of the issue is that Boxer is using an older version of OpenEmuShaders.