Skip to content

Commit 565988d

Browse files
authored
Add additional possible path for library and kernel
Seems to be what is needed for Wolfram Mathematica 14.1 on MacOS.
1 parent 5f6c5d0 commit 565988d

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)