From 74b9abe0345b931a79aa53bf62fe2a746d5fde43 Mon Sep 17 00:00:00 2001 From: Taylor McDonnell Date: Mon, 1 Nov 2021 10:32:32 -0600 Subject: [PATCH] Update build.jl --- deps/build.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/build.jl b/deps/build.jl index 3c10a8d..f6909f8 100644 --- a/deps/build.jl +++ b/deps/build.jl @@ -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 @@ -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")