Skip to content
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

Update pcl_find_boost to allow compilation with Boost 1.73 and 1.72 #4080

Merged
merged 1 commit into from
May 11, 2020

Conversation

UnaNancyOwen
Copy link
Member

Add 1.72.0 and 1.73.0

Add 1.72.0 and 1.73.0
@jspricke
Copy link
Member

Is this necessary, still? (just asking)

@UnaNancyOwen
Copy link
Member Author

@jspricke Yes, it is necessary when users are using an older version of CMake that can't find newer version of Boost by default. Users aren't always using a latest version of CMake.

@jspricke
Copy link
Member

Maybe we should increase the required cmake version instead, do you know which version would be needed?

@jspricke
Copy link
Member

Looking through my FindBoost.cmake, I guess there should be a version locking between the file and the installed boost version. So this seems like a okish workaround..

@SergioRAgostinho
Copy link
Member

We're bumping to 3.10 very soon.

@SunBlack
Copy link
Contributor

Switching to a newer CMake version doesn't change anything, as they didn't have changed there anything. So In case you want to use e.g. Boost 1.72 with CMake 3.10 it is still not possible, as long we use FindBoost of CMake. So by updating Boost_ADDITIONAL_VERSIONS we tell CMake: We don't care if you don't know the new version, as we checked it manually that no required module is gone and we don't need a new module of Boost.

We could only try to force config mode by find_package(Boost CONFIG), so we don't need this list anymore - but I think there is a reason why CMake still updates their find script instead of to deprecate it and say: use the config. But no idea why.

@kunaltyagi kunaltyagi changed the title Update Find Boost Update pcl_find_boost to detect Boost 1.73 and 1.72 May 11, 2020
@kunaltyagi kunaltyagi added this to the pcl-1.11.1 milestone May 11, 2020
@kunaltyagi kunaltyagi added the changelog: fix Meta-information for changelog generation label May 11, 2020
@kunaltyagi kunaltyagi changed the title Update pcl_find_boost to detect Boost 1.73 and 1.72 Update pcl_find_boost to allow compilation with Boost 1.73 and 1.72 May 11, 2020
@kunaltyagi kunaltyagi merged commit e997146 into PointCloudLibrary:master May 11, 2020
@OgreTransporter
Copy link
Contributor

FYI: Using boost 1.74:

10>D:\test\PCL\deps\boost\install\boost/function_output_iterator.hpp(14): note: This header is deprecated. Use <boost/iterator/function_output_iterator.hpp> instead.

@kunaltyagi
Copy link
Member

1.74 isn't released yet: https://www.boost.org/users/history/

But once it is, we'll have to make some changes

@OgreTransporter
Copy link
Contributor

It's just a warning. The old header is still there and still works. Does the new header already exist under 1.72/1.73?

The release date of 1.74 is set to 12. Aug. 2020.

@kunaltyagi
Copy link
Member

Does the new header already exist under 1.72/1.73

In 1.72 it does. But not in 1.65 (18.04) so we'd need a patch sometime later

@srini196
Copy link

srini196 commented Sep 1, 2020

Has the All-In-One Windows installer been updated to support compilation with Boost1.74?

@kunaltyagi
Copy link
Member

Unless @UnaNancyOwen took steps to include the patch from #4330, no. You should be able to manually apply the required patch if needed

@UnaNancyOwen
Copy link
Member Author

@srini196 PCL 1.11.1 All-in-one Installer is built with Boost 1.74.0 (backported #4330). You can use Boost 1.74.0. For more information, Please see my build notes.

@OgreTransporter
Copy link
Contributor

For information only: On next Wednesday boost 1.75 will be published. FindBoost from CMake does not work with this version!

@kunaltyagi
Copy link
Member

I really don't love this part of CMake 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Meta-information for changelog generation module: cmake
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants