Skip to content

Commit 01e1105

Browse files
authored
Merge pull request #96 from dahong67/patch-1
Add additional possible path for Mathematica on MacOS
2 parents 9bf31e6 + 565988d commit 01e1105

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

deps/build.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ function find_lib_ker()
2727
end
2828
end
2929

30+
# Wolfram Mathematica
31+
for path in readlines(`mdfind "kMDItemCFBundleIdentifier == 'com.wolfram.*'"`)
32+
lib = joinpath(path,"Contents/Frameworks/mathlink.framework/mathlink")
33+
ker = joinpath(path,"Contents/MacOS/MathKernel")
34+
if isfile(lib) && isfile(ker)
35+
return lib, ker
36+
end
37+
end
38+
3039
elseif Sys.isunix()
3140
archdir = Sys.ARCH == :arm ? "Linux-ARM" :
3241
Sys.ARCH == :x86_64 ? "Linux-x86-64" :

0 commit comments

Comments
 (0)