25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +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 end
defp deps_include(deps) do 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 end
defp cond_deps do defp cond_deps do