Suppress find_package_handle_standard_args package name mismatch warning.
ClosedPublic

Authored by xuetianweng on May 4 2020, 1:27 AM.

Details

Summary

cmake introduced a new find_package mismatch check in 3.17, but also allows
user to suppress the warning by setting a variable (Or parameter, but
require new cmake 3.17). Same technique is also used with in cmake,
e.g. FindGTK2.cmake.

Test Plan

Test with FindXCB.cmake

Diff Detail

Repository
R240 Extra CMake Modules
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
xuetianweng created this revision.May 4 2020, 1:27 AM
Restricted Application added projects: Frameworks, Build System. · View Herald TranscriptMay 4 2020, 1:27 AM
Restricted Application added subscribers: kde-buildsystem, kde-frameworks-devel. · View Herald Transcript
xuetianweng requested review of this revision.May 4 2020, 1:27 AM
apol accepted this revision.May 4 2020, 2:20 AM
apol added a subscriber: apol.

This will make our configure steps readable again. Thanks!

This revision is now accepted and ready to land.May 4 2020, 2:20 AM
This revision was automatically updated to reflect the committed changes.