diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2017-02-17 16:26:39 +0100 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2017-02-17 16:26:39 +0100 |
commit | 68cc1e775c7fcad5469308f3064cb269ecd9c095 (patch) | |
tree | 6e729e640a194b5023e89548e88933bbd2c973b9 /mix.exs | |
parent | Commands documentation lack arguments when policy=user (#1514) (diff) |
Fix compilation when included as Elixir dependency (#1526)
Diffstat (limited to '')
-rw-r--r-- | mix.exs | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |