Skip to content

Commit e72f1e3

Browse files
committed
Remove blas and lapack deps when using Julia libaries
1 parent 997ed22 commit e72f1e3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

deps/build.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using BinDeps
22
using LinearAlgebra, Libdl
33

4-
@BinDeps.setup
4+
BinDeps.@setup
55

66
blas = library_dependency("libblas", alias=["libblas.dll"])
77
lapack = library_dependency("liblapack", alias=["liblapack.dll"])
@@ -32,6 +32,14 @@ include("constants.jl")
3232
include("compile.jl")
3333

3434
# @info "libname = $libname"
35+
const depends = if JULIA_LAPACK
36+
# Create a new `bindeps_context` global variable that does not
37+
# have `blas` and `lapack` in the list of dependencies.
38+
BinDeps.@setup
39+
[]
40+
else
41+
[blas, lapack]
42+
end
3543
depends = JULIA_LAPACK ? [] : [blas, lapack]
3644

3745
# LaPack/BLAS dependencies

0 commit comments

Comments
 (0)