Skip to content

Commit c8c5844

Browse files
authored
Fix OpenMP compilation bug (#891)
* Fix openmp on MacPorts (setup.py) * Fix openmp on MacPorts (atmexall)
1 parent 2696171 commit c8c5844

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

atmat/atmexall.m

-2
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,6 @@ function compile(mexargs, varargin)
219219
incdir=homeb;
220220
elseif exist('/opt/local/include/libomp/omp.h', 'file') % MacPorts
221221
incdir='/opt/local/include/libomp';
222-
libdir='/opt/local/lib';
223-
libname='omp';
224222
else
225223
error('AT:MissingLibrary', strjoin({'', ...
226224
'libomp.dylib must be installed with your favourite package manager:', '', ...

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def select_omp():
1717
if exists(os.path.join(homeb, "include/omp.h")): # Homebrew
1818
return "-I" + os.path.join(homeb, "include"), os.path.join(homeb, "lib")
1919
elif exists("/opt/local/include/libomp/omp.h"): # MacPorts
20-
return "/opt/local/include/libomp", "/opt/local/lib/libomp"
20+
return "-I/opt/local/include/libomp", "/opt/local/lib/libomp"
2121
else:
2222
raise FileNotFoundError(
2323
"\n".join(

0 commit comments

Comments
 (0)