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
build: remove boost_python from the standard link list. #15344
Conversation
- Cmake and Boost return a list of libraries to liink in Boost_LIBRARIES. Under FreeBSD it also contains libboost-python. Which is not what is expect. So we remove this entry from the list. Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
@@ -597,6 +597,10 @@ set(Boost_USE_MULTITHREADED ON) | |||
find_package(Boost 1.61 COMPONENTS ${BOOST_COMPONENTS} REQUIRED) | |||
include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) | |||
include_directories(SYSTEM ${PROJECT_BINARY_DIR}/include) | |||
if(FREEBSD) | |||
list(REMOVE_ITEM Boost_LIBRARIES "/usr/local/lib/libboost_python.so") |
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.
instead of making a surgery on Boost_LIBRARIES
, i'd recommend only link the necessary boost libs. i will prepare another PR later on.
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.
@tchaikov
Make sense. Prevents dependany on what is embeded in the default stuff that comes with the packages. But note that I'm using the SYSTEM stuff, so I have no idea how that impacts your solution.
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.
@wjwithagen see #15346
@wjwithagen if you are happy with #15346, we can close this PR. as it supersedes this one. |
@tchaikov And then still do I need to add |
@wjwithagen i agree with you. see #15225, i believe it would address your issue. my changes are moved there. ahh, i was wrong. see #15347. i reopened it. sorry for the confusion. |
since #15347 is merged, i am closing this one. |
Boost_LIBRARIES. Under FreeBSD it also contains libboost-python.
Which is not what is expect.
So we remove this entry from the list.
Signed-off-by: Willem Jan Withagen wjw@digiware.nl