how to set include directory for rebar
Asked Answered
S

1

8

In my module I have

-include("blah.hrl").

The .hrl file is not in the module's directory, but somewhere else on my system. How can I make rebar find it when compiling? Is there a way to add a path to the include directory in rebar.config?

Standee answered 12/9, 2013 at 4:46 Comment(0)
P
7
{erl_opts, [{i, PathToIncludeFile}]}.

in rebar.config should do the thing. Or append {i, ...} to the existing erl_opts, if you have any.

Polyhydric answered 12/9, 2013 at 6:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.