From 47b2f9312c7bc593e7bd769e5f26519dcdbbac58 Mon Sep 17 00:00:00 2001 From: Scott Haleen Date: Wed, 10 Apr 2024 23:01:07 -0400 Subject: [PATCH] fixed homebrew path for intel based macs --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index ce0ae9d..0b31fc4 100644 --- a/Makefile +++ b/Makefile @@ -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