Skip to content

Commit

Permalink
Build system: when building the HTML docs, exclude SuiteSparse if `US…
Browse files Browse the repository at this point in the history
…E_GPL_LIBS=0`
  • Loading branch information
DilumAluthge committed Oct 28, 2022
1 parent 47ef407 commit a3e78ff
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions doc/make.jl
Expand Up @@ -24,6 +24,10 @@ cd(joinpath(@__DIR__, "src")) do
Base.rm("stdlib"; recursive=true, force=true)
mkdir("stdlib")
for dir in readdir(STDLIB_DIR)
if (dir == "SuiteSparse") && (!Base.USE_GPL_LIBS)
@info "Excluding SuiteSparse from the docs because Base.USE_GPL_LIBS is false"
continue
end
sourcefile = joinpath(STDLIB_DIR, dir, "docs", "src")
if dir in EXT_STDLIB_DOCS
sourcefile = joinpath(sourcefile, "basedocs.md")
Expand Down Expand Up @@ -236,12 +240,14 @@ DocMeta.setdocmeta!(
maybe_revise(:(using SparseArrays, LinearAlgebra));
recursive=true, warn=false,
)
DocMeta.setdocmeta!(
SuiteSparse,
:DocTestSetup,
maybe_revise(:(using SparseArrays, LinearAlgebra, SuiteSparse));
recursive=true, warn=false,
)
if Base.USE_GPL_LIBS
DocMeta.setdocmeta!(
SuiteSparse,
:DocTestSetup,
maybe_revise(:(using SparseArrays, LinearAlgebra, SuiteSparse));
recursive=true, warn=false,
)
end
DocMeta.setdocmeta!(
UUIDs,
:DocTestSetup,
Expand Down

0 comments on commit a3e78ff

Please sign in to comment.