bombela / backward-cpp

A beautiful stack trace pretty printer for C++
MIT License
3.73k stars 471 forks source link

Cmake warning on find_package(Backward) #188

Closed maxlein closed 3 years ago

maxlein commented 4 years ago

I get a cmake warnings for every dependency when calling find_package(Backward):

The package name passed to `find_package_handle_standard_args` (libdw) does
  not match the name of the calling package (Backward).  
...  
The package name passed to `find_package_handle_standard_args` (libbfd)
  does not match the name of the calling package (Backward).  
...
The package name passed to `find_package_handle_standard_args` (libdwarf)
  does not match the name of the calling package (Backward).  
...

Any info on this?

jbakosi commented 3 years ago

https://cmake.org/cmake/help/latest/module/FindPackageHandleStandardArgs.html seems relevant, especially the doc on var NAME_MISMATCHED, but the solution at https://codereview.qt.nokia.com/c/qt/qtbase/+/298871/1/cmake/3rdparty/extra-cmake-modules/modules/ECMFindModuleHelpers.cmake does not seem to suppress the warnings.