mirror of
https://github.com/nasa/trick.git
synced 2025-04-18 08:10:14 +00:00
GTEST_HOME is /opt/homebrew only for Darwin,Arm. Everything else uses GTEST_HOME = /usr/local.
This commit is contained in:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user