Skip to content

ARROW-11580: [C++] Add CMake option ARROW_DEPENDENCY_SOURCE=VCPKG#9553

Closed
ianmcook wants to merge 15 commits into
apache:masterfrom
ianmcook:ARROW-11580-take2
Closed

ARROW-11580: [C++] Add CMake option ARROW_DEPENDENCY_SOURCE=VCPKG#9553
ianmcook wants to merge 15 commits into
apache:masterfrom
ianmcook:ARROW-11580-take2

Conversation

@ianmcook

@ianmcook ianmcook commented Feb 23, 2021

Copy link
Copy Markdown
Member

This builds upon ARROW-11340 and makes it simpler to use vcpkg for dependencies.

Previously, to use vcpkg it was necessary to specify:

  • -DARROW_DEPENDENCY_SOURCE=SYSTEM
  • -DCMAKE_TOOLCHAIN_FILE=/path/to/vcpkg.cmake
  • -DVCPKG_TARGET_TRIPLET=xxx-yyy-zzz
  • Various*_MSVC_* variables on Windows
  • Various *_ROOT, *_LIB, and *_INCLUDE variables in some cases
  • -D_VCPKG_INSTALLED_DIR=/path/to/vcpkg/installed/dir in some cases

Now all that is necessary is:

  • -DARROW_DEPENDENCY_SOURCE=VCPKG

Other variables are now optional and can be specified to override default behaviors.

After this is merged, I will make additional updates to the docs, focusing initially on Windows (ARROW-11336).

@github-actions

Copy link
Copy Markdown

@ianmcook

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit test-build-vcpkg-win wheel-manylinux2010-cp36m wheel-windows-cp36m

@github-actions

Copy link
Copy Markdown

Revision: 17c32d4

Submitted crossbow builds: ursacomputing/crossbow @ actions-172

Task Status
test-build-vcpkg-win Github Actions
wheel-manylinux2010-cp36m Github Actions
wheel-windows-cp36m Github Actions

@ianmcook ianmcook marked this pull request as ready for review February 23, 2021 02:44
@pitrou pitrou requested a review from kou February 23, 2021 13:30

@kou kou 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.

(My review isn't completed yet... I'll continue later.)

Comment thread cpp/CMakeLists.txt Outdated
@ianmcook

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit test-build-vcpkg-win wheel-manylinux2010-cp36m wheel-windows-cp36m

@github-actions

Copy link
Copy Markdown

Revision: f5c21b3

Submitted crossbow builds: ursacomputing/crossbow @ actions-173

Task Status
test-build-vcpkg-win Github Actions
wheel-manylinux2010-cp36m Github Actions
wheel-windows-cp36m Github Actions

Comment thread run-cmake-format.py Outdated
@ianmcook

ianmcook commented Feb 26, 2021

Copy link
Copy Markdown
Member Author

FYI, I have not attempted to thoroughly test and fix debug builds with vcpkg-installed dependencies, but I plan to do that in ARROW-11796.

@ianmcook

ianmcook commented Mar 4, 2021

Copy link
Copy Markdown
Member Author

@kou let me know if there is anything I can do to help you complete your review. Thank you!

@kou kou 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.

It almost looks good to me!
I'm not sure many CACHE are really needed.

Comment thread cpp/cmake_modules/Usevcpkg.cmake Outdated
Comment thread cpp/cmake_modules/Usevcpkg.cmake Outdated
Comment thread cpp/cmake_modules/Usevcpkg.cmake
Comment thread cpp/cmake_modules/Usevcpkg.cmake Outdated
@kou

kou commented Mar 4, 2021

Copy link
Copy Markdown
Member

Oh, sorry for my late review...

@ianmcook

ianmcook commented Mar 4, 2021

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit test-build-vcpkg-win wheel-manylinux2010-cp36m wheel-windows-cp36m

@github-actions

github-actions Bot commented Mar 4, 2021

Copy link
Copy Markdown

Revision: d7f0e22

Submitted crossbow builds: ursacomputing/crossbow @ actions-178

Task Status
test-build-vcpkg-win Github Actions
wheel-manylinux2010-cp36m Github Actions
wheel-windows-cp36m Github Actions

@kou kou 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.

+1

We can merge this once CI is green.

@ianmcook

ianmcook commented Mar 5, 2021

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit test-build-vcpkg-win wheel-manylinux2010-cp36m wheel-windows-cp36m

@github-actions

github-actions Bot commented Mar 5, 2021

Copy link
Copy Markdown

Revision: 2e6905a

Submitted crossbow builds: ursacomputing/crossbow @ actions-180

Task Status
test-build-vcpkg-win Github Actions
wheel-manylinux2010-cp36m Github Actions
wheel-windows-cp36m Github Actions

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.

2 participants