Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.12.0
-
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)..??