mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-03 14:45:16 +02: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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user