[CMake] Fix broken use of REQUIRED with find modules
authorannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Aug 2017 16:39:14 +0000 (16:39 +0000)
committerannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Aug 2017 16:39:14 +0000 (16:39 +0000)
commitb3acea8f466df1df739534718d40826df38883b3
tree44cdbfb08e0a416210c98ce43fd30f8d681b6048
parentb89a29d11e2b0db7c4f843dda48d51b3533bfb9f
[CMake] Fix broken use of REQUIRED with find modules
https://bugs.webkit.org/show_bug.cgi?id=175427

Reviewed by Michael Catanzaro.

Module name passed to find_package_handle_standard_args() must exactly
match file name of CMake find module including letter case, e.g. "WebP"
must be used in FindWebP.cmake file. Otherwise find_package() arguments
(REQUIRED, QUIET, version) are not processed correctly.

To continue using old XXX_FOUND variables without case changes porting
to new find_package_handle_standard_args syntax which has FOUND_VAR
parameter. Unfortunately, variable name GTK_UNIX_PRINT_FOUND is not
allowed by find_package_handle_standard_args when package name is
GTKUnixPrint, so it's replaced to GTKUnixPrint_FOUND (default).

* Source/cmake/FindGTKUnixPrint.cmake:
* Source/cmake/FindGeoClue2.cmake:
* Source/cmake/FindHyphen.cmake:
* Source/cmake/FindLibEpoxy.cmake:
* Source/cmake/FindLibGBM.cmake:
* Source/cmake/FindLibsecret.cmake:
* Source/cmake/FindLibtasn1.cmake:
* Source/cmake/FindLibxkbcommon.cmake:
* Source/cmake/FindOpenGL.cmake:
* Source/cmake/FindOpenGLES2.cmake:
* Source/cmake/FindOpenWebRTC.cmake:
* Source/cmake/FindWPEBackend-mesa.cmake:
* Source/cmake/FindWPEBackend.cmake:
* Source/cmake/FindWayland.cmake:
* Source/cmake/FindWebP.cmake:
* Source/cmake/OptionsGTK.cmake:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@220595 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
ChangeLog
Source/cmake/FindGTKUnixPrint.cmake
Source/cmake/FindGeoClue2.cmake
Source/cmake/FindHyphen.cmake
Source/cmake/FindLibEpoxy.cmake
Source/cmake/FindLibGBM.cmake
Source/cmake/FindLibsecret.cmake
Source/cmake/FindLibtasn1.cmake
Source/cmake/FindLibxkbcommon.cmake
Source/cmake/FindOpenGL.cmake
Source/cmake/FindOpenGLES2.cmake
Source/cmake/FindOpenWebRTC.cmake
Source/cmake/FindWPEBackend-mesa.cmake
Source/cmake/FindWPEBackend.cmake
Source/cmake/FindWayland.cmake
Source/cmake/FindWebP.cmake
Source/cmake/OptionsGTK.cmake