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

Use common file for boost versions. #5960

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

larshg
Copy link
Contributor

@larshg larshg commented Feb 11, 2024

closes #2559

@@ -93,13 +93,8 @@ macro(find_boost)
elseif(NOT BOOST_INCLUDEDIR)
set(BOOST_INCLUDEDIR "@Boost_INCLUDE_DIR@")
endif()

set(Boost_ADDITIONAL_VERSIONS
"@Boost_MAJOR_VERSION@.@Boost_MINOR_VERSION@.@Boost_SUBMINOR_VERSION@" "@Boost_MAJOR_VERSION@.@Boost_MINOR_VERSION@"
Copy link
Member

Choose a reason for hiding this comment

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

What about this line? This would be lost. Maybe something like

set(Boost_ADDITIONAL_VERSIONS "@Boost_MAJOR_VERSION@.@Boost_MINOR_VERSION@.@Boost_SUBMINOR_VERSION@" "@Boost_MAJOR_VERSION@.@Boost_MINOR_VERSION@" ${Boost_ADDITIONAL_VERSIONS})

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But the Boost_MAJOR_VERSION etc. refers to the boost that PCL was build with - so that should already be in that original list?

but maybe it should just be that one that stays or is the intention that you fx. build PCL with boost 1.75.0 and then use another boost version in the downstream project? Wouldn't make that much sense?

Copy link
Member

Choose a reason for hiding this comment

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

This logic was added in #1630 . If I understand correctly, it exists so that CMake prefers the Boost version that PCL was built with.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I guess we can keep it that way.

@larshg larshg merged commit 4ab87d4 into PointCloudLibrary:master Feb 15, 2024
13 checks passed
@larshg larshg deleted the useCommonBoostVersionList branch February 15, 2024 15:41
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.

Revise pcl_find_boost.cmake
2 participants