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

The work for PROTON-2254 seems to have broken modern use of CMake

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-c-0.36.0
    • proton-c-0.36.0
    • proton-c
    • None

    Description

      I build Proton and install it in ~/Work/qpid-install
      ...
      > ninja install
      ...
      I create a simple CMakeFiles.txt:

      cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
      project(amqp-value-parser)
      find_package(Proton 0.28 REQUIRED)
      add_executable (amqp-value-test main.c)
      target_link_libraries (amqp-value-test amqp-value Proton::core)
      

      I use cmake like so:
      > cmake -G Ninja -D CMAKE_INSTALL_PREFIX=~/Work/qpid-install

      Compiles fail to correctly find the include files for proton.

      I think because this work has removed this section and hasn't replaced it with anything else that does the same thing.

      # Add modular target in a way compatible with cmake 2.8.12
      if (NOT TARGET Proton::core)
        add_library(Proton::core UNKNOWN IMPORTED)
        set_target_properties(Proton::core
          PROPERTIES
            IMPORTED_LOCATION "@LIBDIR@/@PROTONCORELIB@"
            IMPORTED_LOCATION_DEBUG "@LIBDIR@/@PROTONCORELIBDEBUG@"
            INTERFACE_INCLUDE_DIRECTORIES "${Proton_Core_INCLUDE_DIRS}")
      endif()
      

      As the original work was only an improvement we either need to fix this very soon or revert the original change.

      Attachments

        1. PROTON-2433_01.zip
          1 kB
          Jiri Daněk

        Issue Links

          Activity

            People

              jdanek Jiri Daněk
              astitcher Andrew Stitcher
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: