Skip to content

Commit

Permalink
build: Add Homebrew lib dir to lib_dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
oyamad committed Nov 15, 2016
1 parent 3256021 commit 6abb054
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/build.jl
Expand Up @@ -72,15 +72,19 @@ targetdirs = AbstractString["lib-src-gmp/libcddgmp.la","lib-src-gmp/.libs/libcdd
@static if is_apple()
homebrew_includedir = joinpath(Homebrew.brew_prefix, "include")
configureopts = AbstractString["CPPFLAGS=-DGMPRATIONAL -I$(libsrc_dir) -I$(libsrcgmp_dir) -I$(homebrew_includedir)"]
homebrew_libdir = joinpath(Homebrew.brew_prefix, "lib")
libdirs = AbstractString[homebrew_libdir]
else
configureopts = AbstractString["CPPFLAGS=-DGMPRATIONAL -I$(libsrc_dir) -I$(libsrcgmp_dir)"]
libdirs = AbstractString[] # What to include?
end

provides(BuildProcess,
Dict(
Autotools(
libtarget = targetdirs,
include_dirs = includedirs,
lib_dirs = libdirs,
configure_options = configureopts) => libcdd))

@BinDeps.install Dict(:libcddgmp => :libcdd)

0 comments on commit 6abb054

Please sign in to comment.