mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fix #2540 Ejabberd doesnt compile as mix umbrella project dependency
This commit is contained in:
parent
5819733de6
commit
7ab7390b9c
10
mix.exs
10
mix.exs
@ -96,9 +96,13 @@ defmodule Ejabberd.Mixfile do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp deps_include(deps) do
|
defp deps_include(deps) do
|
||||||
base = case Mix.Project.deps_paths()[:ejabberd] do
|
base = if Mix.Project.umbrella?() do
|
||||||
nil -> "deps"
|
"../../deps"
|
||||||
_ -> ".."
|
else
|
||||||
|
case Mix.Project.deps_paths()[:ejabberd] do
|
||||||
|
nil -> "deps"
|
||||||
|
_ -> ".."
|
||||||
|
end
|
||||||
end
|
end
|
||||||
Enum.map(deps, fn dep -> base<>"/#{dep}/include" end)
|
Enum.map(deps, fn dep -> base<>"/#{dep}/include" end)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user