Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@talregev
Copy link
Contributor

@talregev talregev commented Jun 6, 2025

Add vcpkg ci
Fix #672
continue this PR #1413

@talregev talregev marked this pull request as ready for review June 6, 2025 18:26
@talregev talregev force-pushed the TalR/vcpkg branch 2 times, most recently from 20d9255 to fece22c Compare June 7, 2025 18:08
@dellaert dellaert requested a review from ProfFan June 8, 2025 10:51
@dellaert
Copy link
Member

dellaert commented Jun 8, 2025

Adding Dr. Fan to review this

Copy link
Collaborator

@ProfFan ProfFan left a comment

Choose a reason for hiding this comment

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

Thank you! Mostly looks good to me, just need a few changes :)

binary_cache: C:\Users\runneradmin\AppData\Local\vcpkg\archives
vcpkg_info: C:/vcpkg/installed/vcpkg/info/*
python: python
ctest_extra_flags: -E check_constraint_program
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add a TODO before this line saying why this one has to be disabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this test is failed on windows. On the regular windows build, the test is not running, so you don't aware it fail on windows.
I will add a TODO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

set(PYBIND11_MASTER_PROJECT OFF)
set(pybind11_system SYSTEM)
set(_pybind11_findpython_default OFF)
if(CMAKE_VERSION VERSION_LESS "3.18")
Copy link
Collaborator

Choose a reason for hiding this comment

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

We vendor pybind11 but we don't make changes directly on it. Could you explain why this change is required? If absolutely required this should be submitted upstream or as a VCPKG patch, and we add an option in wrap to use system or vcpkg-provided pybind11

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, I don't suppose to change the wrapper. I notice that after your comment.
I did it to support vcpkg.
I already install pybind via vcpkg, and ideal gtsam should find vcpkg pybind instead this wrapper.
For now I will disable python tests in vcpkg, and revert this change.
We can explore python test with vcpkg in other PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good, Just remove changes in wrap and comment out the Python VCPKG tests, and add a TODO. I'll find some time to update wrap to allow external Pybind11.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

Copy link
Contributor Author

@talregev talregev left a comment

Choose a reason for hiding this comment

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

review comment

binary_cache: C:\Users\runneradmin\AppData\Local\vcpkg\archives
vcpkg_info: C:/vcpkg/installed/vcpkg/info/*
python: python
ctest_extra_flags: -E check_constraint_program
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this test is failed on windows. On the regular windows build, the test is not running, so you don't aware it fail on windows.
I will add a TODO.

set(PYBIND11_MASTER_PROJECT OFF)
set(pybind11_system SYSTEM)
set(_pybind11_findpython_default OFF)
if(CMAKE_VERSION VERSION_LESS "3.18")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, I don't suppose to change the wrapper. I notice that after your comment.
I did it to support vcpkg.
I already install pybind via vcpkg, and ideal gtsam should find vcpkg pybind instead this wrapper.
For now I will disable python tests in vcpkg, and revert this change.
We can explore python test with vcpkg in other PR.

Copy link
Collaborator

@ProfFan ProfFan left a comment

Choose a reason for hiding this comment

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

Thank you!

@ProfFan ProfFan merged commit 7a16a4a into borglab:develop Jun 10, 2025
39 checks passed
@talregev talregev deleted the TalR/vcpkg branch June 11, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Using Vcpkg/conan for dependencies and third party libraries

3 participants