Library include path #708
Unanswered
jackhumphries
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Could you maybe have the rule install the header files in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
In my project, I am using the
make
rule to compile an external static library with a Makefile. I want to #include the library's header files in some of my project's source files. My project is compiled with thecc_binary
rule.In the make_simple example, test_lib.cpp includes the library's header (
liba.h
) with the line#include "liba.h"
.In my project, I would like the include path to be prefixed by the library's name. For example, the library's name in the
make_simple
example ismake_lib
, so I would like the include path to be#include "make_lib/liba.h"
. This is helpful for avoiding confusion and issues when a header file in my project has the same name as a header file in the library.I've read through the documentation and tried a few things but haven't managed to get this working. Does anyone know how to do this?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions