-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Use common file for boost versions. #5960
Conversation
@@ -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@" |
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.
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})
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.
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?
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.
This logic was added in #1630 . If I understand correctly, it exists so that CMake prefers the Boost version that PCL was built with.
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.
Yeah, I guess we can keep it that way.
closes #2559