Bug 213990 - [WPE][GTK] CMake warnings
Summary: [WPE][GTK] CMake warnings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CMake (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 214012 216773
Blocks:
  Show dependency treegraph
 
Reported: 2020-07-06 05:23 PDT by Philippe Normand
Modified: 2020-09-23 14:33 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2020-07-06 05:23:24 PDT
--  demux (required): /usr/lib/x86_64-linux-gnu/libwebpdemux.so
CMake Warning (dev) at /usr/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
  The package name passed to `find_package_handle_standard_args` (ATK_BRIDGE)
  does not match the name of the calling package (ATKBridge).  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):
  Source/cmake/FindATKBridge.cmake:47 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  Source/cmake/WebKitFindPackage.cmake:104 (_find_package)
  Source/cmake/OptionsWPE.cmake:132 (find_package)
  Source/cmake/WebKitCommon.cmake:58 (include)
  CMakeLists.txt:173 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at Source/cmake/FindWOFF2.cmake:76 (message):
  Cannot determine WOFF2 version without pkg-config
Call Stack (most recent call first):
  Source/cmake/WebKitFindPackage.cmake:104 (_find_package)
  Source/cmake/OptionsWPE.cmake:146 (find_package)
  Source/cmake/WebKitCommon.cmake:58 (include)
  CMakeLists.txt:173 (include)
Comment 1 Adrian Perez 2020-07-07 05:06:18 PDT
(In reply to Philippe Normand from comment #0)
> --  demux (required): /usr/lib/x86_64-linux-gnu/libwebpdemux.so
> CMake Warning (dev) at
> /usr/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272
> (message):
>   The package name passed to `find_package_handle_standard_args` (ATK_BRIDGE)
>   does not match the name of the calling package (ATKBridge).  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):
>   Source/cmake/FindATKBridge.cmake:47 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>   Source/cmake/WebKitFindPackage.cmake:104 (_find_package)
>   Source/cmake/OptionsWPE.cmake:132 (find_package)
>   Source/cmake/WebKitCommon.cmake:58 (include)
>   CMakeLists.txt:173 (include)
> This warning is for project developers.  Use -Wno-dev to suppress it.

We have a few more with CMake 3.17 (or at least I started to notice
more warnings recently which I think it was after CMake was updated
to 3.17.3 in Arch Linux).

It would be good to take advantage of the situation to also convert
the offending find-modules to use imported targets, while at it :-)

> CMake Warning at Source/cmake/FindWOFF2.cmake:76 (message):
>   Cannot determine WOFF2 version without pkg-config
> Call Stack (most recent call first):
>   Source/cmake/WebKitFindPackage.cmake:104 (_find_package)
>   Source/cmake/OptionsWPE.cmake:146 (find_package)
>   Source/cmake/WebKitCommon.cmake:58 (include)
>   CMakeLists.txt:173 (include)

This second warning has been already fixed in bug #214012 / r264012
Comment 2 Adrian Perez 2020-09-23 14:31:41 PDT
(In reply to Philippe Normand from comment #0)
> --  demux (required): /usr/lib/x86_64-linux-gnu/libwebpdemux.so
> CMake Warning (dev) at
> /usr/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272
> (message):
>   The package name passed to `find_package_handle_standard_args` (ATK_BRIDGE)
>   does not match the name of the calling package (ATKBridge).  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):
>   Source/cmake/FindATKBridge.cmake:47 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>   Source/cmake/WebKitFindPackage.cmake:104 (_find_package)
>   Source/cmake/OptionsWPE.cmake:132 (find_package)
>   Source/cmake/WebKitCommon.cmake:58 (include)
>   CMakeLists.txt:173 (include)
> This warning is for project developers.  Use -Wno-dev to suppress it.

This one was fixed in bug #216773 ­— the fix landed in r267399
Comment 3 Adrian Perez 2020-09-23 14:33:35 PDT
Closing, CMake warnings are no more in “trunk” 😊️