Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2017-02-17 18:26:39 +0300
committerChristophe Romain <christophe.romain@process-one.net>2017-02-17 18:26:39 +0300
commit68cc1e775c7fcad5469308f3064cb269ecd9c095 (patch)
tree6e729e640a194b5023e89548e88933bbd2c973b9 /mix.exs
parenta1e8d3c3dc45b68953b0f9100f78650345fae350 (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