Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9005

find_package_helper makes using packages REQUIRED

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • cmake

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bbannier Benjamin Bannier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: