-
Notifications
You must be signed in to change notification settings - Fork 345
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
Reference Boost libraries individually in CMake per docs #1024
Conversation
@Martinfx, can you try this PR to see if it does the trick in FreeBSD? |
I tested your branch on FreeBSD and this is result
|
@YakoYakoYokuYoku You try to add (if else) for FreeBSD and for Linux |
Can you check for both of |
I am sorry my mistake. I have new installation OS. It is ok. |
@YakoYakoYokuYoku I can't find the doc saying that this is the proper way to use boost from cmake.
Can you please give us a pointer? |
It's way down below in the boostorg/cmake README, seems that when I was copying it I've omitted the fragment, drats. |
My read of that section isn't that this is the preferred method, its just that is how you had to do things if you were using a version before 1.82. It looks like most FreeBSD installs should be above this threshold so what we have should be ok. @Martinfx when you say "I am sorry my mistake. I have new installation OS. It is ok." does this mean you did something and now you are able to build? Can you build now with the original code or do you still need a change like this? |
It is ok. I installed a package boost-libs.I am able to build natron. |
Ok. @Martinfx please close your pull request then and I suggest we close this one as well. |
This has to be merged, as
|
So if you look at the documentation for CMP0167 it does not recommend your fix. It looks like the proper fix is to add CONFIG to the existing line (i.e. find_package(Boost CONFIG COMPONENTS headers serialization) ) |
Actually after looking at the full find_package() signature it looks like it should be find_package(Boost COMPONENTS headers serialization CONFIG) |
In the boostorg/cmake README they don't mention |
Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. Additionally, make sure you've done all of these things:
PR Description
What type of PR is this? (Check one of the boxes below)
What does this pull request do?
This fixes an annoying policy warning when using CMake. Referencing libraries directly with
find_package
has been supported way back in Boost.Show a few screenshots (if this is a visual change)
N/A.
Have you tested your changes (if applicable)? If so, how?
By building and running Natron.
Futher details of this pull request
This might fix issues in other platforms such as BSD related to include directories.