Skip to content

Commit

Permalink
Address WinRPM issues
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Aug 13, 2018
1 parent 35313c9 commit 9796c14
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/LibCURL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ include("lC_exports_h.jl")
include("lC_common_h.jl")

const libcurl = if Sys.iswindows()
Pkg.dir("WinRPM","deps","usr","$(Sys.ARCH)-w64-mingw32","sys-root","mingw","bin","libcurl-4")
dir = if VERSION >= v"0.7"
import WinRPM
joinpath(dirname(pathof(WinRPM)), "..")
else
Pkg.dir("WinRPM")
end
joinpath(dir,"deps","usr","$(Base.Sys.ARCH)-w64-mingw32","sys-root","mingw","bin","libcurl-4")
else
"libcurl"
end
Expand Down

0 comments on commit 9796c14

Please sign in to comment.