aboutsummaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2017-02-17 16:26:39 +0100
committerChristophe Romain <christophe.romain@process-one.net>2017-02-17 16:26:39 +0100
commit68cc1e775c7fcad5469308f3064cb269ecd9c095 (patch)
tree6e729e640a194b5023e89548e88933bbd2c973b9 /mix.exs
parentCommands documentation lack arguments when policy=user (#1514) (diff)
Fix compilation when included as Elixir dependency (#1526)
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs6
1 files changed, 5 insertions, 1 deletions
diff --git a/mix.exs b/mix.exs
index 3cddbfb01..dd233f9a6 100644
--- a/mix.exs
+++ b/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