-
-
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 findGLEW and FindOpenMP as they are already present in CMake. Update minimum required cmake to 3.16.3 #6100
Conversation
Regarding GLEW, this would effectively revert commit b4cba32 , right? Regarding OpenMP: Our FindOpenMP.cmake says that it can be removed when CMake 3.11 is required (you added FindOpenMP.cmake in commit 6d6718c ). The fix on the CMake side seems to be https://gitlab.kitware.com/cmake/cmake/-/commit/ffa6f8752b6928190c61ccb32f9c2776de422ad2 ? Then we should require CMake 3.11 in CMakeLists.txt and PCLConfig.cmake.in |
Should we move the cmake all the way to 3.16.3, as thats what our lowest CI uses, ie. Ubuntu 20.04 -> https://dev.azure.com/PointCloudLibrary/pcl/_build/results?buildId=24643&view=logs&j=f37cc87d-ec62-5c45-cc90-507356bb1dc7&t=fd8b7a93-6a1a-5896-63be-1e40cca607f5&l=8975 ? |
So every CMake version >= 3.11 and < 3.16 would be untested, but there is no immediate reason why they would not work, right? I think I would slightly prefer to set the requirement to 3.11. But if you think 3.16 is better, I am also fine with that. |
Yes, I think we have made jumps in CMake versions before. And currently on CIs: So if we only require 3.11, but don't test that it actually works with that version is kind of unfortunate? We could try to keep it compatible with 3.11, carefully checking each time that we don't use functionality that's not <3.16 compliant, but our CI's won't catch it. |
okay, let's raise the requirement to CMake 3.16 then. |
cca5d37
to
b71222c
Compare
b71222c
to
d48638e
Compare
I think searching for GLEW in CONFIG mode is not the right way? At least on Ubuntu, there is neither a GLEWConfig.cmake nor a GLEW-config.cmake in any Ubuntu version. The CI jobs report that GLEW could not be found. |
Yeah, surely looks like that :sad: I have reverted to use the non-config version. |
142d9b7
to
3c9f67b
Compare
I am unsure about removing all the By the way, could you force-push or close and reopen the PR, so that the CI checks run again? The logs from the last run have already been deleted by Azure. |
…om any find_X calls as hints as they should be used automatically now.
3c9f67b
to
5ae66ee
Compare
I think the name is defered from the find_package(FLANN) - then its FLANN_ROOT etc. |
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.
Thanks for the explanation! Looks good then.
No description provided.