Ken Giusti created DISPATCH-1644:
------------------------------------
Summary: Suppress cmake warning about LIBWEBSOCKETS
Key: DISPATCH-1644
URL: https://issues.apache.org/jira/browse/DISPATCH-1644
Project: Qpid Dispatch
Issue Type: Bug
Components: Router Node
Affects Versions: 1.12.0
Reporter: Ken Giusti
Assignee: Ken Giusti
Fix For: 1.13.0
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)..??
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]