Skip to content

Commit

Permalink
fix Requires by moving ext into init function
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan committed Oct 7, 2023
1 parent 5c281f1 commit aa76ccc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/StartUpDG.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ function __init__()
@require Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" begin
include("TriangulatePlots.jl")
end
end

# Until Julia v1.9 is the minimum required version for StartUpDG.jl, we still support Requires.jl
@static if !isdefined(Base, :get_extension)
# Until Julia v1.9 is the minimum required version for StartUpDG.jl, we still support Requires.jl
@static if !isdefined(Base, :get_extension)
@require SummationByPartsOperators="9f78cca6-572e-554e-b819-917d2f1cf240" begin
include("../ext/StartUpDGSummationByPartsOperatorsExt.jl")
end
end
end
end

end # module

0 comments on commit aa76ccc

Please sign in to comment.