-
Notifications
You must be signed in to change notification settings - Fork 612
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
[gradle] Add generated protobuf headers to C++ test include path #5920
Comments
I swore I had tried this and hoped you did it slightly differently than me, but this is what I was getting This should be reopened |
The specific error message is this (lines 3699-3719 of the posted CI link):
So I think the error is about Gradle configuration, not whether the protobuf headers are in the C++ include path. |
Ah, we need to add a dependency linkage... should be pretty straightforward to do that in shared/jni/setupBuild.gradle, but I'm not sure of the exact Gradle incantation to do it. |
Looks like we do https://github.com/wpilibsuite/allwpilib/blob/main/shared/jni/setupBuild.gradle#L71 for the compile base tasks:
|
#5933 should fix that issue. |
This reverts commit 0155823.
Is your feature request related to a problem? Please describe.
Currently generated protobuf headers are not put into the include path that is used to build the tests. I tried a couple things to fix add the include path but didn't make any progress and thought Thad might now how to fix it real quick. I found this when working on #5918, which is why that does not have C++ tests in the PR
To reproduce, add a test file like this into
wpimath/src/test/native/cpp/geometry
The text was updated successfully, but these errors were encountered: