Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1644

Suppress cmake warning about LIBWEBSOCKETS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.12.0
    • 1.13.0
    • Router Node
    • None

    Description

      CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
      The package name passed to `find_package_handle_standard_args`
      (LIBWEBSOCKETS) does not match the name of the calling package
      (LibWebSockets). 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/FindLibWebSockets.cmake:60 (find_package_handle_standard_args)
      CMakeLists.txt:63 (find_package)
      This warning is for project developers. Use -Wno-dev to suppress it.

      We're using the older API to find_package_handle_standard_args() to support older versions of cmake.  This is fine - we just have to suppress the warning as described in FindPackageHandleStandardArgs.cmake:

      ?? If ``<PackageName>`` does not match ``CMAKE_FIND_PACKAGE_NAME`` for the??
      ?? calling module, a warning that there is a mismatch is given. The??
      ?? ``FPHSA_NAME_MISMATCHED`` variable may be set to bypass the warning if using??
      ?? the old signature and the ``NAME_MISMATCHED`` argument using the new??
      ?? signature. To avoid forcing the caller to require newer versions of CMake for??
      ?? usage, the variable's value will be used if defined when the??
      ?? ``NAME_MISMATCHED`` argument is not passed for the new signature (but using??
      ?? both is an error)..??

       

       

      Attachments

        Activity

          People

            kgiusti Ken Giusti
            kgiusti Ken Giusti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: