You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need you experts' help to use the rule cmake in a specific way.
The project to use rule cmake(), called XXXX, need a library called "libacl". But I cannot simply install the libacl by apt.
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.
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?
The text was updated successfully, but these errors were encountered:
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
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
Dear all,
I need you experts' help to use the rule cmake in a specific way.
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?
The text was updated successfully, but these errors were encountered: