25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Fix compilation when included as Elixir dependency (#1526)

This commit is contained in:
Christophe Romain 2017-02-17 16:26:39 +01:00
parent a1e8d3c3dc
commit 68cc1e775c

View File

@ -57,7 +57,11 @@ defmodule Ejabberd.Mixfile do
end
defp deps_include(deps) do
Enum.map(deps, fn dep -> "deps/#{dep}/include" end)
base = case Mix.Project.deps_paths()[:ejabberd] do
nil -> "deps"
_ -> ".."
end
Enum.map(deps, fn dep -> base<>"/#{dep}/include" end)
end
defp cond_deps do