Benjamin Bannier created MESOS-9005:
---------------------------------------
Summary: find_package_helper makes using packages REQUIRED
Key: MESOS-9005
URL: https://issues.apache.org/jira/browse/MESOS-9005
Project: Mesos
Issue Type: Improvement
Components: cmake
Environment: We currently implement a cmake function
{{find_package_helper}} which, in addition to finding package artifacts, also
by hand implements much of the functionality of
{{find_package_handle_standard_args}}.
One aspect not replicated is the handling of the {{REQUIRED}} flag to
{{find_package}}. Instead {{find_package_helper}} always generates a hard error
if an artifact cannot be found.
It might be simpler to separate the discovery logic from the error handling
logic, and delegate as much as possible to
{{find_package_handle_standard_args}} so that we not only simplify our custom
code, but also get the expected {{find_package}} semantics.
Reporter: Benjamin Bannier
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)