Skip to content

Commit

Permalink
Oh, it really does call itself libmxnet.so on non-linux platforms too
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Apr 18, 2016
1 parent 7be95f6 commit 0ec6dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ libmxnet_detected = false
if haskey(ENV, "MXNET_HOME")
info("MXNET_HOME environment detected: $(ENV["MXNET_HOME"])")
info("Trying to load existing libmxnet...")
lib = Libdl.find_library(["libmxnet"], ["$(ENV["MXNET_HOME"])/lib"])
lib = Libdl.find_library(["libmxnet", "libmxnet.so"], ["$(ENV["MXNET_HOME"])/lib"])
if !isempty(lib)
info("Existing libmxnet detected at $lib, skip building...")
libmxnet_detected = true
Expand All @@ -32,7 +32,7 @@ if !libmxnet_detected

#--------------------------------------------------------------------------------
# Build libmxnet
mxnet = library_dependency("mxnet", aliases=["libmxnet"])
mxnet = library_dependency("mxnet", aliases=["libmxnet", "libmxnet.so"])

_prefix = joinpath(BinDeps.depsdir(mxnet), "usr")
_srcdir = joinpath(BinDeps.depsdir(mxnet),"src")
Expand Down

0 comments on commit 0ec6dca

Please sign in to comment.