fixed homebrew path for intel based macs

This commit is contained in:
Scott Haleen 2024-04-10 23:01:07 -04:00
parent a08c11b60e
commit 47b2f9312c

View file

@ -19,6 +19,12 @@ ifeq ($(shell uname), Darwin)
LDLIBS += -lomp
INCLUDES += -I/opt/homebrew/opt/libomp/include
$(info NICE Compiling with OpenMP support)
else ifeq ($(shell [ -d /usr/local/opt/libomp/lib ] && echo "exists"), exists)
CFLAGS += -Xclang -fopenmp -DOMP
LDFLAGS += -L/usr/local/opt/libomp/lib
LDLIBS += -lomp
INCLUDES += -I/usr/local/opt/libomp/include
$(info NICE Compiling with OpenMP support)
else
$(warning OOPS Compiling without OpenMP support)
endif