-
Notifications
You must be signed in to change notification settings - Fork 3.7k
GH-46084: [C++] Always use ARROW_VCPKG to detect vcpkg mode #46467
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
Conversation
We can use `ARROW_DEPENDENCY_SOURCE=VCPKG` to use vcpkg for dependencies. We prepare vcpkg by `cpp/cmake_modules/UseVcpkg.cmake` and it always defines `ARROW_VCPKG`. The current code base has some ways to detect vcpkg mode: * `if (ARROW_PACKAGE_KIND STREQUAL "vcpkg")` * `if (VCPKG_TOOLCHAIN)` `ARROW_PACKAGE_KIND` is optional. `ARROW_DEPENDENCY_SOURCE=VCPKG` doesn't define `ARROW_PACKAGE_KIND=vcpkg` automatically. So either `ARROW_VCPKG` or `VCPKG_TOOLCHAIN` is better to detect vcpkg mode. This change uses `ARROW_VCPKG` for readability. If we accept vcpkg mode without `ARROW_DEPENDENCY_SOURCE=VCPKG`, `VCPKG_TOOLCHAIN` is better than `ARROW_VCPKG`.
@github-actions crossbow submit -g python -g cpp |
|
Revision: 4411272 Submitted crossbow builds: ursacomputing/crossbow @ actions-73dadde10f |
+1 |
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 1229ced. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
Rationale for this change
We can use
ARROW_DEPENDENCY_SOURCE=VCPKG
to use vcpkg for dependencies. We prepare vcpkg bycpp/cmake_modules/UseVcpkg.cmake
and it always definesARROW_VCPKG
.The current code base has some ways to detect vcpkg mode:
if (ARROW_PACKAGE_KIND STREQUAL "vcpkg")
if (VCPKG_TOOLCHAIN)
ARROW_PACKAGE_KIND
is optional.ARROW_DEPENDENCY_SOURCE=VCPKG
doesn't defineARROW_PACKAGE_KIND=vcpkg
automatically.So either
ARROW_VCPKG
orVCPKG_TOOLCHAIN
is better to detect vcpkg mode.What changes are included in this PR?
This change uses
ARROW_VCPKG
for readability. If we accept vcpkg mode withoutARROW_DEPENDENCY_SOURCE=VCPKG
,VCPKG_TOOLCHAIN
is better thanARROW_VCPKG
.Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.