lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
944 stars 385 forks source link

Replace cmake/FindGLib2.cmake with pkg_check_modules #402

Closed nosracd closed 1 year ago

nosracd commented 1 year ago

Shuts up the warning:

CMake Warning (dev) at /usr/local/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (GLib2_glib)
  does not match the name of the calling package (GLib2).  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):
  cmake/FindGLib2.cmake:47 (find_package_handle_standard_args)
  cmake/FindGLib2.cmake:74 (_glib2_add_target)
  CMakeLists.txt:10 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.