diff --git a/src/corbits.jl b/src/corbits.jl index 7b64614..98c4309 100644 --- a/src/corbits.jl +++ b/src/corbits.jl @@ -6,7 +6,7 @@ if VERSION >= v"0.7.0-" using Pkg using CORBITS #global const LIB_CORBITS = Libdl.find_library(["libcorbits.so"],[".",joinpath(Pkg.devdir(),"ExoplanetsSysSim/"),joinpath(Pkg.devdir(),"CORBITS/"),"/usr/local/lib"]) # WARNING: Assumes can find libcorbits.so - global const LIB_CORBITS = Libdl.find_library(["libcorbits.so"],[".",joinpath(dirname(pathof(ExoplanetsSysSim))),joinpath(dirname(pathof(CORBITS))),"/usr/local/lib"]) # WARNING: Assumes can find libcorbits.so + global const LIB_CORBITS = Libdl.find_library(["libcorbits.so"],[".",joinpath(dirname(pathof(ExoplanetsSysSim))),joinpath(dirname(pathof(CORBITS))),joinpath(dirname(pathof(CORBITS)))*"/../","/usr/local/lib"]) # WARNING: Assumes can find libcorbits.so elseif VERSION >= v"0.4.0-" global const LIB_CORBITS = Libdl.find_library(["libcorbits.so"],[".",joinpath(Pkg.dir(),"ExoplanetsSysSim/"),joinpath(Pkg.dir(),"CORBITS/"),"/usr/local/lib"]) # WARNING: Assumes can find libcorbits.so else