Public bug reported:

As discussed in https://github.com/PointCloudLibrary/pcl/issues/6094,
including PCL in a cmake project produces this warning:

```
CMake Warning (dev) at 
/usr/lib/x86_64-linux-gnu/cmake/pcl/Modules/FindFLANN.cmake:45 (find_package):
  Policy CMP0144 is not set: find_package uses upper-case <PACKAGENAME>_ROOT
  variables.  Run "cmake --help-policy CMP0144" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  CMake variable FLANN_ROOT is set to:

    /usr

  For compatibility, find_package is ignoring the variable, but code in a
  .cmake module might still use it.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:261 (find_package)
  /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:306 (find_flann)
  /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:570 
(find_external_library)
  [... calling find_package(PCL) in our own config ...]
This warning is for project developers.  Use -Wno-dev to suppress it.
```

This warning shows up upon a find_package call to PCL, and is not a
warning directed at users of the pcl package. This warning was fixed
upstream recently, in this commit
https://github.com/PointCloudLibrary/pcl/commit/da76ad9c827a4598e57b3850de4ef368b02330ca.

I would like to request this patch to be included in the debian releases
on Ubuntu Jazzy. Currently, any project that depends directly or even
**transitively depends** on PCL, gets this error unless developer
warnings are disabled across their whole project with ``-Wno-dev``,
which isn't ideal. This includes many ROS packages.

** Affects: pcl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2111295

Title:
  Warning in all downstream packages - Policy CMP0144 is not set

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcl/+bug/2111295/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to