-
Couldn't load subscription status.
- Fork 3.9k
GH-47945: [C++] Add support for Boost 1.89.0 and require Boost 1.69 or later #47947
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
base: main
Are you sure you want to change the base?
Conversation
|
|
|
@lahwaacz Could you try this? |
|
@kou This seems to work, thanks! |
Boost.System is header-only since Boost 1.69. CentOS 7 uses Boost 1.69. So we can drop support for Boost 1.68 or older.
|
Thanks. I'll merge this in a few days if nobody objects 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.
Thanks @kou this looks good to me, I just have a question of something I don't understand.
| gmock>=1.10.0 | ||
| google-cloud-cpp>=1.34.0 | ||
| gtest>=1.10.0 | ||
| libboost-devel |
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.
thanks for this!
| # enable CMP0167 "The FindBoost module is removed." | ||
| # https://cmake.org/cmake/help/latest/policy/CMP0167.html with CMake | ||
| # 3.30.0 or later. | ||
| set(Boost_ADDITIONAL_VERSIONS |
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.
I don't understand why we don't have to add "1.89.0" here.
I understand that we will have to remove this once CMake >= 3.30.0 but from https://cmake.org/cmake/help/latest/module/FindBoost.html it doesn't seem like 1.89.0 should not be added to this list. Do you know why this is not required?
Rationale for this change
Boost 1.89.0 removed backward compatibility CMake package for Boost.System. Boost.System is header-only since Boost 1.69. So CMake package for Boost.System isn't needed but it's provided for backward compatibility.
CentOS 7 uses Boost 1.69. So we can drop support for Boost 1.68 or older.
What changes are included in this PR?
systemfromCOMPONENTSbecause Boost.System is header-only.Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.