From e1d8beb647ddbb55e00b41cffc7d9c3f5a65625e Mon Sep 17 00:00:00 2001 From: Victor Glazer Date: Sun, 28 Sep 2025 00:47:18 -0400 Subject: [PATCH 1/2] Added Homebrew headers to the include path When you brew install eigen, the headers get written to /opt/homebrew/include/eigen3, so add /opt/homebrew/include to the include path --- test/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index 9867fff..b6fa62e 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,7 +1,8 @@ METAL_CPP_DIR = ../metal-cpp_macOS14.2_iOS17.2 +HOMEBREW_INC = /opt/homebrew/include CXX = clang++ -CXXFLAGS = -std=c++20 -O2 -I$(METAL_CPP_DIR) -I../include -framework Foundation -framework Metal -framework MetalKit +CXXFLAGS = -std=c++20 -O2 -I$(METAL_CPP_DIR) -I$(HOMEBREW_INC) -I../include -framework Foundation -framework Metal -framework MetalKit INC = ../include/metal.h ../include/array.h ../include/mtlcpp.h From 970eee9e45e3d307249685aa60f25d529de1e375 Mon Sep 17 00:00:00 2001 From: Victor Glazer Date: Sun, 28 Sep 2025 01:10:53 -0400 Subject: [PATCH 2/2] Added instructions for installing Eigen using Homebrew --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 08ae1bf..f2fbbe0 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Build and run unit tests and benchmark -------------------------------------- * Install Xcode Command Line Tools + * Install Eigen with `brew install eigen` (you will need Homebrew) * Run the following commands in Terminal ```bash