Skip to content

Commit

Permalink
Use is_... instead of macros for OS-specific code sections
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Jul 4, 2016
1 parent 71a90b4 commit b9f3db1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ using BinDeps, Compat

@BinDeps.setup

@linux_only begin
if is_linux()
hdf5 = library_dependency("libhdf5", aliases = ["libhdf5", "libhdf5_serial", "libhdf5_openmpi", "libhdf5_mpich"])
provides(AptGet, "hdf5-tools", hdf5)
provides(Pacman, "hdf5", hdf5)
provides(Yum, "hdf5", hdf5)
end

@windows_only begin
if is_windows()
using WinRPM
hdf5 = library_dependency("libhdf5", aliases = ["hdf5_w64", "hdf5"])
provides(WinRPM.RPM, "hdf5", hdf5, os = :Windows )
end

@osx_only begin
if is_apple()
using Homebrew
hdf5 = library_dependency("libhdf5")
provides(Homebrew.HB, "hdf5", hdf5, os = :Darwin )
Expand Down

0 comments on commit b9f3db1

Please sign in to comment.