GTEST_HOME is /opt/homebrew only for Darwin,Arm. Everything else uses GTEST_HOME = /usr/local.

This commit is contained in:
John M. Penn 2025-03-04 10:57:39 -06:00
parent 4a9e21607a
commit 773d9814e7

@ -5,11 +5,13 @@ CPP = /usr/bin/g++
DECL_DIR = ..
GTEST_HOME=/usr/local
UNAME_S = $(shell uname -s)
UNAME_M = $(shell uname -m)
ifeq ($(UNAME_S),Darwin)
GTEST_HOME=/opt/homebrew
else
GTEST_HOME=/usr/local
ifeq ($(UNAME_M),arm64)
GTEST_HOME=/opt/homebrew
endif
endif
CFLAGS += -std=c++14 -g -Wall -Wextra -I$(GTEST_HOME)/include -I$(DECL_DIR)/include