diff --git a/Makefile b/Makefile index 9ffdc6331..50d4d4a52 100644 --- a/Makefile +++ b/Makefile @@ -98,6 +98,8 @@ endif ifeq ($(BUILDTYPE), MacOSX) MACPORTS ?= 1 +else + MACPORTS ?= 0 endif @@ -460,9 +462,15 @@ CFLAGS += -fopenmp CXXFLAGS += -fopenmp NVCCFLAGS += -Xcompiler -fopenmp else +ifeq ($(MACPORTS),1) +CFLAGS += -fopenmp +CXXFLAGS += -fopenmp +NVCCFLAGS += -Xcompiler -fopenmp +else LDFLAGS += "-L/usr/local/opt/libomp/lib" -lomp CPPFLAGS += "-I/usr/local/opt/libomp/include" -Xclang -fopenmp endif +endif else CFLAGS += -Wno-unknown-pragmas CXXFLAGS += -Wno-unknown-pragmas