Closed cusspvz closed 1 year ago
On Intel macOS, the default homebrew prefix is /usr/local
and not /opt/local
:
$ uname -sm
Darwin x86_64
$ brew --prefix
/usr/local
@mgkuhn correct, but on arm64 (m1/m2) it is installed at /opt/local
by default. This PR fixes builds on either arm64-based, or any installation that exists on a different prefix than the default one. We could also use brew --prefix
to acquire the path.
Homebrew can be installed on different paths.
Changed the makefile so it attempts to use the
HOMEBREW_HOME
as the libs folder for all the c++ include files