Skip to content

Commit ca9e659

Browse files
authored
Precompile CGDFG based on ENV variable (#567)
1 parent 63ec2ea commit ca9e659

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/DistributedFactorGraphs.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,18 +289,18 @@ include("Common.jl")
289289
# Data Blob extensions
290290
include("DataBlobs/DataBlobs.jl")
291291

292+
if get(ENV, "DFG_USE_CGDFG", "") == "true"
293+
@info "Detected ENV[\"DFG_USE_CGDFG\"]: Including optional CloudGraphsDFG (LGPL) Driver"
294+
include("CloudGraphsDFG/CloudGraphsDFG.jl")
295+
@reexport using .CloudGraphsDFGs
296+
end
297+
292298
function __init__()
293299
@require GraphPlot = "a2cc645c-3eea-5389-862e-a155d0052231" begin
294300
@info "Including Plots"
295301
include("DFGPlots/DFGPlots.jl")
296302
@reexport using .DFGPlots
297303
end
298-
299-
if get(ENV, "DFG_USE_CGDFG", "") == "true"
300-
@info "Detected ENV[\"DFG_USE_CGDFG\"]: Including optional CloudGraphsDFG (LGPL) Driver"
301-
Base.include(DistributedFactorGraphs, joinpath(@__DIR__, "CloudGraphsDFG/CloudGraphsDFG.jl"))
302-
@eval DistributedFactorGraphs @reexport using .CloudGraphsDFGs
303-
end
304304
end
305305

306306

0 commit comments

Comments
 (0)