-
Notifications
You must be signed in to change notification settings - Fork 5
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
cmake: Silent "Policy CMP0167 is not set" #259
Conversation
According to https://gitlab.kitware.com/cmake/cmake/-/issues/19402, Boost 1.70 and later is sufficient to use the new behaviour. Given our minimum required is 1.73, is there a reason we can't just use the new behaviour? Also:
|
The As we use only Boost headers and finding them is quite a trivial task, we can introduce our own module, say |
Not sure what you mean. It doesn't currently exist in depends because we just copy the headers, rather than compiling / installing. If you build/install you'll get a
So reimplement and maintain the old behaviour (I guess something like the Boost macro in master) that CMake is getting rid of? Wouldn't it be better to just use the CMake config file in depends, and the modern behaviour? |
Right. We have to modify the way how the
I don't know what is better. Anyway, there is no need to reimplement the whole CMake's module, which includes handling libraries. |
While bitcoin#30434 is drafted, can we proceed with this approach? |
Rebased. |
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.
ACK, but please add a comment about this and Boost_NO_BOOST_CMAKE
. Something like:
We cannot rely on find_package(Boost ... )
to work properly without Boost_NO_BOOST_CMAKE
set until we require a more recent boost because upstream did not ship proper CMake files until 1.82.0.
Silent "Policy CMP0167 is not set" warning and document usage of the `Boost_NO_BOOST_CMAKE` variable.
Thanks! The comment has been updated. |
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.
ACK b3448f1
This PR silents a developer warning when using >=CMake 3.30.
Closes #257.