-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-36379: [C++] Bundled dependency include paths should override system include dirs #37612
Conversation
|
@github-actions crossbow submit -g cpp |
Revision: 7073a98 Submitted crossbow builds: ursacomputing/crossbow @ actions-1750e0d372 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
We need to run cmake-format
before we merge this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes sense imo, a more involved (and brittle) alternative might be to move gtest to the front in target_link_libraries
calls. I tried to reproduce the error but failed, where you able to test the fix with the error locally @bkietz ?
Should we try to revert #37483 in this PR? |
Ah, I thought the two approaches were alternatives. If not then nevermind. |
FetchContent_MakeAvailable automatically adds include directories and (at least while I was testing this) seems to prepend the |
I think so too. I merge this. |
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 44811ba. There were 5 benchmark results indicating a performance regression:
The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them. |
…e system include dirs (apache#37612) ### Rationale for this change Bundled dependencies' include directories should override system include dirs. Otherwise an incompatible header in the system might be included when we wanted a header from the bundled dependency. ### What changes are included in this PR? bundled dependencies explicitly insert their own include dirs ahead of others * Closes: apache#36379 Authored-by: Benjamin Kietzman <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
…e system include dirs (apache#37612) ### Rationale for this change Bundled dependencies' include directories should override system include dirs. Otherwise an incompatible header in the system might be included when we wanted a header from the bundled dependency. ### What changes are included in this PR? bundled dependencies explicitly insert their own include dirs ahead of others * Closes: apache#36379 Authored-by: Benjamin Kietzman <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
Rationale for this change
Bundled dependencies' include directories should override system include dirs. Otherwise an incompatible header in the system might be included when we wanted a header from the bundled dependency.
What changes are included in this PR?
bundled dependencies explicitly insert their own include dirs ahead of others
#include
ing GTest headers from somewhere else #36379