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

CMake find_package will fail unhelpfully when user asks for component that is not provided

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-c-0.37.0
    • proton-c-0.38.0
    • build, proton-c
    • None

    Description

      - find_package(Proton 0.34.0 REQUIRED COMPONENTS Core Proactor)
      + find_package(Proton 0.37.0 REQUIRED COMPONENTS Core Proactor Tls)
      

      https://github.com/skupperproject/skupper-router/runs/5979935734?check_suite_focus=true#step:6:65

      CMake Error at CMakeLists.txt:76 (find_package):
      -- Configuring incomplete, errors occurred!
      See also "/tmp/skupper-rpms/skupper-router/x86_64-redhat-linux-gnu/CMakeFiles/CMakeOutput.log".
      See also "/tmp/skupper-rpms/skupper-router/x86_64-redhat-linux-gnu/CMakeFiles/CMakeError.log".
        Found package configuration file:
      
          /usr/lib64/cmake/Proton/ProtonConfig.cmake
      
        but it set Proton_FOUND to FALSE so package "Proton" is considered to be
        NOT FOUND.
      
      
      error: Bad exit status from /var/tmp/rpm-tmp.01Gzla (%build)
      
      
      RPM build errors:
          Bad exit status from /var/tmp/rpm-tmp.01Gzla (%build)
      

      Attachments

        Activity

          People

            jdanek Jiri Daněk
            jdanek Jiri Daněk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: