Skip to content

Commit

Permalink
Update build.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
taylormcd authored Nov 1, 2021
1 parent dd0d6e4 commit 74b9abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function ldlibs()
if Sys.isunix()
return "-l$libname -ldl"
else
return normpath(joinpath(libDir(), "..", "lib", "lib$libname.dll.a"))
return "\'$(normpath(joinpath(libDir(), "..", "lib", "lib$libname.dll.a")))\'"
end
end

Expand Down Expand Up @@ -144,7 +144,7 @@ if !isnothing(matlab_root)
build_ldlibs = ldlibs()
build_src = abspath("mexjulia.cpp")
outdir = normpath(joinpath(pwd(),"..","mexjulia"))
mex_cmd = "mex -v -largeArrayDims -outdir \'$outdir\' LDFLAGS=\'$(build_ldflags) \$LDFLAGS\' CFLAGS=\'$(build_cflags) \$CFLAGS\' \'$(build_src)\' \'$(build_ldlibs)\'"
mex_cmd = "mex -v -largeArrayDims -outdir \'$outdir\' LDFLAGS=\'$(build_ldflags) \$LDFLAGS\' CFLAGS=\'$(build_cflags) \$CFLAGS\' \'$(build_src)\' $(build_ldlibs)"

# generate Mex-file build script
dict_file = joinpath(outdir, "jldict.mat")
Expand Down

0 comments on commit 74b9abe

Please sign in to comment.