Skip to content

Commit

Permalink
fixed homebrew path for intel based macs
Browse files Browse the repository at this point in the history
  • Loading branch information
scotthaleen committed Apr 11, 2024
1 parent a08c11b commit 47b2f93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47b2f93

Please sign in to comment.