Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fverdugo committed Mar 20, 2024
1 parent a5900ab commit a469cde
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Gmsh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ export gmsh
@static if gmsh_provider == "system"
using Libdl
function __init__()
# This is just to have a better idea why gmsh.lib is empty
@static if Sys.isunix()
@show gmsh.libdir
@show gmsh.libname
@show gmsh.lib
gmsh_lib = joinpath(gmsh_jl_dir,"libgmsh.so")
@show gmsh_lib
Libdl.dlopen(gmsh_lib, Libdl.RTLD_LAZY | Libdl.RTLD_DEEPBIND)
if gmsh.lib == ""
gmsh_lib = joinpath(gmsh_jl_dir,"libgmsh")
Libdl.dlopen(gmsh_lib, Libdl.RTLD_LAZY | Libdl.RTLD_DEEPBIND)
end
end
if gmsh.lib == ""
error("The gmsh.jl API file was not able to find a gmsh libary. Some dependencies are provably not installed in the system.")
end
end
end
Expand Down

0 comments on commit a469cde

Please sign in to comment.