Skip to content

Invocation of find_package_handle_standard_args with a different package name warns with CMake 3.17 #47

@tfoote

Description

@tfoote

All builds are causing multiple instances of the following warning:

From: https://ci.ros2.org/job/ci_osx/8744/consoleFull

14:02:52 CMake Warning (dev) at /usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
14:02:52   The package name passed to `find_package_handle_standard_args` (libdw) does
14:02:52   not match the name of the calling package (Backward).  This can lead to
14:02:52   problems in calling code that expects `find_package` result variables
14:02:52   (e.g., `_FOUND`) to follow a certain pattern.
14:02:52 Call Stack (most recent call first):
14:02:52   src/memory_tools/vendor/bombela/backward-cpp/BackwardConfig.cmake:61 (find_package_handle_standard_args)
14:02:52   src/memory_tools/CMakeLists.txt:7 (find_package)
14:02:52 This warning is for project developers.  Use -Wno-dev to suppress it.

There are 3 instances

Full error messages:

--- stderr: osrf_testing_tools_cpp
14:02:52 CMake Warning (dev) at /usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
14:02:52   The package name passed to `find_package_handle_standard_args` (libdw) does
14:02:52   not match the name of the calling package (Backward).  This can lead to
14:02:52   problems in calling code that expects `find_package` result variables
14:02:52   (e.g., `_FOUND`) to follow a certain pattern.
14:02:52 Call Stack (most recent call first):
14:02:52   src/memory_tools/vendor/bombela/backward-cpp/BackwardConfig.cmake:61 (find_package_handle_standard_args)
14:02:52   src/memory_tools/CMakeLists.txt:7 (find_package)
14:02:52 This warning is for project developers.  Use -Wno-dev to suppress it.
14:02:52 
14:02:52 CMake Warning (dev) at /usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
14:02:52   The package name passed to `find_package_handle_standard_args` (libbfd)
14:02:52   does not match the name of the calling package (Backward).  This can lead
14:02:52   to problems in calling code that expects `find_package` result variables
14:02:52   (e.g., `_FOUND`) to follow a certain pattern.
14:02:52 Call Stack (most recent call first):
14:02:52   src/memory_tools/vendor/bombela/backward-cpp/BackwardConfig.cmake:72 (find_package_handle_standard_args)
14:02:52   src/memory_tools/CMakeLists.txt:7 (find_package)
14:02:52 This warning is for project developers.  Use -Wno-dev to suppress it.
14:02:52 
14:02:52 CMake Warning (dev) at /usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
14:02:52   The package name passed to `find_package_handle_standard_args` (libdwarf)
14:02:52   does not match the name of the calling package (Backward).  This can lead
14:02:52   to problems in calling code that expects `find_package` result variables
14:02:52   (e.g., `_FOUND`) to follow a certain pattern.
14:02:52 Call Stack (most recent call first):
14:02:52   src/memory_tools/vendor/bombela/backward-cpp/BackwardConfig.cmake:87 (find_package_handle_standard_args)
14:02:52   src/memory_tools/CMakeLists.txt:7 (find_package)
14:02:52 This warning is for project developers.  Use -Wno-dev to suppress it.
14:02:52 
14:02:52 ---
14:02:52 Finished <<< osrf_testing_tools_cpp [32.9s]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions