rules_boost | bazel build rules to use boost in bazel projects | Machine Learning library
kandi X-RAY | rules_boost Summary
kandi X-RAY | rules_boost Summary
To use these rules, add the following to your WORKSPACE file:. You can then use libraries in deps through the @boost repository, for example @boost//:algorithm. Based in part on rules from
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rules_boost
rules_boost Key Features
rules_boost Examples and Code Snippets
Community Discussions
Trending Discussions on rules_boost
QUESTION
I have a pretty simple C++ project with Bazel that I am trying to implement gtest in and it has 3 BUILD files when including the test one. The problem I am having is that my headers in my library are visible to the app directory but not the test one and when I try to build my simple test it fails. My project structure is:
...ANSWER
Answered 2022-Mar-14 at 20:51Instead of copts = ["-Ilib"]
, use includes = ["."]
on the cc_library
. That tells Bazel that anything which depends on that cc_library
should get that directory on the include path, regardless of the relative path to get there.
Specifically, remove all the copts = ["-Ilib"]
, and change lib/BUILD
to this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rules_boost
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page