Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1974

Libraries are not being correctly detected in CMake build scripts when old CMake is used

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: proton-c-0.25.0, proton-c-0.26.0
    • Fix Version/s: proton-c-0.27.0
    • Component/s: build, proton-c
    • Labels:
      None
    • Environment:
      RHEL 7, CMake 2.8.12.2
    • Flags:
      Patch

      Description

      On CMake 2.8.12.2, function find_package_handle_standard_args sets (by default) only the <PACKAGENAME>_FOUND variable. With newer versions, such as 3.12.1, both the uppercased, as well as the unmodified <PackageName>_FOUND are set. Proton examines the unmodified variable.

      As a result, with older CMake, optional libraries such as Cyrus SASL are detected by CMake, but then are not used by proton-c, as if they were not present on the system.

        Attachments

          Activity

            People

            • Assignee:
              astitcher Andrew Stitcher
              Reporter:
              jdanek Jiri Daněk
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: