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:
parent
a1e8d3c3dc
commit
68cc1e775c
6
mix.exs
6
mix.exs
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user