Skip to content

GH-49499: [C++] Improve arrow vcpkg port integration#49543

Merged
raulcd merged 1 commit into
apache:mainfrom
kou:cpp-vcpkg
Mar 18, 2026
Merged

GH-49499: [C++] Improve arrow vcpkg port integration#49543
raulcd merged 1 commit into
apache:mainfrom
kou:cpp-vcpkg

Conversation

@kou

@kou kou commented Mar 18, 2026

Copy link
Copy Markdown
Member

Rationale for this change

We already have CMake configurations only for vcpkg but it's not used when our CMake packages is installed by vcpkg.

What changes are included in this PR?

We're using ARROW_DEPENDENCY_SOURCE=VCPKG to detect that Apache Arrow is building with dependencies installed by vcpkg but we can't use it in our CMake packages installed by arrow vcpkg port. Because arrow vcpkg port doesn't use ARROW_DEPENDENCY_SOURCE=VCPKG.

We can use ARROW_PACKAGE_KIND=vcpkg to detect whether our CMake packages are installed by arrow vcpkg port. Because arrow vcpkg port uses ARROW_PACKAGE_KIND=vcpkg.

This also fixes a variable name typo in FindSnappyAlt.

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

We already have CMake configurations only for vcpkg but it's not used
when our CMake packages is installed by vcpkg. We can use
`ARROW_PACKAGE_KIND=vcpkg` to detect whether our CMake packages are
installed by arrow vcpkg port.

Co-authored-by: Marcin Krystianc <marcin.krystianc@gmail.com>
@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #49499 has been automatically assigned in GitHub to PR creator.

marcin-krystianc added a commit to G-Research/ParquetSharp that referenced this pull request Mar 18, 2026

@marcin-krystianc marcin-krystianc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I'm the original reporter of #49499. I've tested the changes from this PR, and I can confirm it fixes our multi-config build issues.

@raulcd raulcd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kou and @marcin-krystianc

@raulcd
raulcd merged commit 9cbd401 into apache:main Mar 18, 2026
52 checks passed
@github-actions github-actions Bot added awaiting merge Awaiting merge and removed awaiting committer review Awaiting committer review labels Mar 18, 2026
@kou
kou deleted the cpp-vcpkg branch March 18, 2026 11:26
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 9cbd401.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 5 possible false positives for unstable benchmarks that are known to sometimes produce them.

thisisnic pushed a commit to thisisnic/arrow that referenced this pull request Apr 6, 2026
)

### Rationale for this change

We already have CMake configurations only for vcpkg but it's not used when our CMake packages is installed by vcpkg.

### What changes are included in this PR?

We're using `ARROW_DEPENDENCY_SOURCE=VCPKG` to detect that Apache Arrow is building with dependencies installed by vcpkg but we can't use it in our CMake packages installed by arrow vcpkg port. Because arrow vcpkg port doesn't use `ARROW_DEPENDENCY_SOURCE=VCPKG`.

We can use `ARROW_PACKAGE_KIND=vcpkg` to detect whether our CMake packages are installed by arrow vcpkg port. Because arrow vcpkg port uses `ARROW_PACKAGE_KIND=vcpkg`.

This also fixes a variable name typo in `FindSnappyAlt`.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* GitHub Issue: apache#49499

Lead-authored-by: Sutou Kouhei <kou@clear-code.com>
Co-authored-by: Marcin Krystianc <marcin.krystianc@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
Mottl pushed a commit to Mottl/arrow that referenced this pull request May 26, 2026
)

### Rationale for this change

We already have CMake configurations only for vcpkg but it's not used when our CMake packages is installed by vcpkg.

### What changes are included in this PR?

We're using `ARROW_DEPENDENCY_SOURCE=VCPKG` to detect that Apache Arrow is building with dependencies installed by vcpkg but we can't use it in our CMake packages installed by arrow vcpkg port. Because arrow vcpkg port doesn't use `ARROW_DEPENDENCY_SOURCE=VCPKG`.

We can use `ARROW_PACKAGE_KIND=vcpkg` to detect whether our CMake packages are installed by arrow vcpkg port. Because arrow vcpkg port uses `ARROW_PACKAGE_KIND=vcpkg`.

This also fixes a variable name typo in `FindSnappyAlt`.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* GitHub Issue: apache#49499

Lead-authored-by: Sutou Kouhei <kou@clear-code.com>
Co-authored-by: Marcin Krystianc <marcin.krystianc@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants