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 3.17: The package name passed to find_package_handle_standard_args
does not match the name of the calling package
#3680
Comments
Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs. |
I was wrong |
FYI: I remember also getting these warnings recently. |
Still error exists. Anyone has solution for this ? |
I believe the fix has been merged already. @larshg was it? |
Not the fix I implemented. Mine was about Ensenso, LibUSB and one more I think. This seems to be a warning when using PCL modules in downstream projects instead. |
I got the same warning compiling a package, cartographer_ros, in |
This is what I did to temporarily solve this issue and keep build output minimal and relevant: CMakeLists.txt in my project:
|
Seeing the same for rt:
|
@nccurry Your warning seems to come from a different project, not PCL. It appears you are compiling/using assimp? I suggest you open an issue there. According to this cmake documentation (see note), the warning can be disabled by setting |
This is a temporary workaround. See here: PointCloudLibrary/pcl#3680 When this PCL issue is fixed, the changes done in this commit should be removed. CMake Warning (dev) at /usr/local/Cellar/cmake/3.18.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:273 (message): The package name passed to `find_package_handle_standard_args` (libusb-1.0) does not match the name of the calling package (PCL). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): /usr/local/share/pcl-1.11/PCLConfig.cmake:290 (find_package_handle_standard_args) /usr/local/share/pcl-1.11/PCLConfig.cmake:337 (find_libusb) /usr/local/share/pcl-1.11/PCLConfig.cmake:549 (find_external_library) cmake/VISPUtils.cmake:536 (find_package) CMakeLists.txt:593 (VP_OPTION) This warning is for project developers. Use -Wno-dev to suppress it.
I'm running into the same problem (using PCL as a dependency in my project), and I'm reluctant to apply the workarounds suggested here in my CMakefiles, because it will also silence other instances of the warning that could actually be useful. Could this issue somehow be fixed in the PCL CMakefiles (or probably find_package) and reset to the previous value afterwards? |
So……is there has any solution??? |
#4431 has been merged. For now, please see if you can apply that as a patch. Else use master branch till PCL 1.12 is released |
I currently tested CMake 3.17(-rc1) on our build machine and currently we are getting following hints by CMake:
Maybe it helps to pass a
max
(3.16) version tocmake_minimum_required
to fix it until we have time to really improve it. But currently I don't have time to test it.The text was updated successfully, but these errors were encountered: