-
-
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
Remove explicit setting of CM0074 policy to NEW #3962
Remove explicit setting of CM0074 policy to NEW #3962
Conversation
There's another PR working on Boost. Can't link it now |
901d46a
to
c0745fc
Compare
I had mistakenly modified the Boost dependency. Removed it. |
CMake considers
|
Recent versions of cmake we're at some point spewing the warning claiming that policy was not set. This comment clarifies under which situations it is emitted. If you're using CMake >= 3.12 and no warning related the policy is being emitted, then it might mean that it is no longer required. Try this both for pcl and a downstream project with a cmake_minimum_required < 3.12, while using a CMake version >= 3.12. |
Still slightly confused. We use
Will test and report back. |
I checked it out, didn't notice any CMake warnings on setting minimum version to 3.0 |
@SergioRAgostinho I'm not comfortable merging PR with CMake changes. PTAL |
We might have removed the previous usage of |
Maybe @larshg can help review the CMake code so there's more confidence in merging this |
As I can see it, Package_ROOT variables are still used in various find scripts. And the policy is first available from 3.12. I couldn't find any information if it has been removed in later Cmake versions, but I don't get any warnings not setting the policy, running Cmake 3.19.1. However, I don't see any reason not to keep it as it just allow CMake to look in package_ROOT directories if they are defined. I would close this one for now. |
Will reopen if there's interest by original author post 3.12 requirement |
Expanding upon #2671
Couldn't quite understand why this was needed:
pcl/PCLConfig.cmake.in
Line 20 in 8bcde6f