Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: How can I add a include path of a deps library in rule cmake? #1179

Open
sunzhec2702 opened this issue Mar 3, 2024 · 0 comments

Comments

@sunzhec2702
Copy link

sunzhec2702 commented Mar 3, 2024

Dear all,

I need you experts' help to use the rule cmake in a specific way.

  1. The project to use rule cmake(), called XXXX, need a library called "libacl". But I cannot simply install the libacl by apt.
  2. I use cc_import() to create a library with shared_library and header files. I wrote a demo file to use the cc_import library which is OK to use. The <sys/acl.h> can be found.
  3. But if I simply add a argument "@libacl//:libacl" just like I used in the demo code in the XXXX project with cmake(). It didn't work.

From the cmake log, I can see that the libacl project was copied to the ext_build_deps folder. But after I enabled the verbose of cmake, the include path of the "libacl" was not passed to gcc.

"-I" parameter is only followed by the XXXX's include path.

How should I use rule cmake in this case?

@sunzhec2702 sunzhec2702 changed the title How can I add a include path in rule cmake? How can I add a include path of a deps library in rule cmake? Mar 3, 2024
@sunzhec2702 sunzhec2702 changed the title How can I add a include path of a deps library in rule cmake? Feature Request: How can I add a include path of a deps library in rule cmake? Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant